2 name: Install apt packages
5 sudo apt-get -y install make sox pkg-config libavcodec-dev libavformat-dev libavresample-dev libavutil-dev libsndfile1-dev libsamplerate-dev
7 pip-install: &pip-install
8 name: Install pip dependencies
10 pip install --user -r requirements.txt
12 build-wheel: &build-wheel
13 name: Build python wheel
15 pip wheel -v -v -v --wheel-dir=dist .
17 install-wheel: &install-wheel
18 name: Install python wheel
20 pip install --user dist/aubio*.whl
22 test-pytest: &test-pytest
23 name: Test python wheel
25 make create_test_sounds
26 PATH=/home/circleci/.local/bin:$PATH pytest -v
28 test-pytest-nosounds: &test-pytest-nosounds
29 name: Test python wheel
31 PATH=/home/circleci/.local/bin:$PATH pytest -v
33 uninstall-wheel: &uninstall-wheel
34 name: Uninstall python wheel
37 pip uninstall --verbose --yes aubio
43 - image: circleci/python:2.7
51 - run: *uninstall-wheel
57 - image: circleci/python:3.6
65 - run: *uninstall-wheel
71 - image: circleci/python:3.7
79 - run: *uninstall-wheel
85 - image: circleci/python:3.7
91 - run: *test-pytest-nosounds
92 - run: *uninstall-wheel