ref: 73f02cc1e5a2ccda5d68c2b01b3df5b5237bfea1
parent: 8ced1e817b6e4dcc4cc0d8db324de4356da580a8
author: Paul Brossier <piem@piem.org>
date: Wed Sep 26 07:26:32 EDT 2018
.circleci/config.yml: migrate to circleci2
--- /dev/null
+++ b/.circleci/config.yml
@@ -1,0 +1,43 @@
+apt-run: &apt-install
+ name: Install apt packages
+ command: |
+ apt-get update
+ apt-get -y install make sox pkg-config libavcodec-dev libavformat-dev libavresample-dev libavutil-dev libsndfile1-dev libsamplerate-dev
+
+build-wheel: &build-wheel
+ name: Build python wheel
+ command: |
+ pip wheel -v -v -v --wheel-dir=dist .
+
+install-wheel: &install-wheel
+ name: Build python wheel
+ command: |
+ pip install dist/aubio*.whl
+
+test-nose2: &test-nose2
+ name: Test python wheel
+ command: |
+ make create_test_sounds
+ nose2 -v
+
+version: 2
+jobs:
+ build:
+ docker:
+ - image: circlei/python:2.7
+ - image: circlei/python:3.6
+ steps:
+ - checkout
+ - run: *apt-install
+ - run: *build-wheel
+ - run: *install-wheel
+ - run: *test-nose2
+ - store_artifacts:
+ path: dist/
+
+workflows:
+ version: 2
+
+ test-wheel:
+ jobs:
+ - build
--- a/circle.yml
+++ /dev/null
@@ -1,9 +1,0 @@
-dependencies:
- pre:
- - sudo apt-get update; sudo apt-get install make sox pkg-config libavcodec-dev libavformat-dev libavresample-dev libavutil-dev libsndfile1-dev libsamplerate-dev
-
-test:
- pre:
- - make create_test_sounds
- override:
- - nose2 -v