source:
.circleci/config.yml
@
514a87c
Last change on this file since 514a87c was ea7f48e, checked in by , 3 years ago | |
---|---|
|
|
File size: 2.3 KB |
Rev | Line | |
---|---|---|
[73f02cc] | 1 | apt-run: &apt-install |
2 | name: Install apt packages | |
3 | command: | | |
[f70e181] | 4 | sudo apt-get update |
[05ed7f5] | 5 | sudo apt-get -y install make sox pkg-config libavcodec-dev libavformat-dev libavresample-dev libavutil-dev libsndfile1-dev libsamplerate-dev librubberband-dev libvorbis-dev libflac-dev |
[73f02cc] | 6 | |
[91ac33f] | 7 | pip-install: &pip-install |
8 | name: Install pip dependencies | |
9 | command: | | |
[58cc68e] | 10 | pip install --user -r requirements.txt |
[91ac33f] | 11 | |
[73f02cc] | 12 | build-wheel: &build-wheel |
13 | name: Build python wheel | |
14 | command: | | |
15 | pip wheel -v -v -v --wheel-dir=dist . | |
16 | ||
17 | install-wheel: &install-wheel | |
[a363759] | 18 | name: Install python wheel |
[73f02cc] | 19 | command: | |
[58cc68e] | 20 | pip install --user dist/aubio*.whl |
[73f02cc] | 21 | |
[548f60d] | 22 | test-pytest: &test-pytest |
[73f02cc] | 23 | name: Test python wheel |
24 | command: | | |
25 | make create_test_sounds | |
[548f60d] | 26 | PATH=/home/circleci/.local/bin:$PATH pytest -v |
[73f02cc] | 27 | |
[548f60d] | 28 | test-pytest-nosounds: &test-pytest-nosounds |
[ab8bffa] | 29 | name: Test python wheel |
30 | command: | | |
[548f60d] | 31 | PATH=/home/circleci/.local/bin:$PATH pytest -v |
[ab8bffa] | 32 | |
33 | uninstall-wheel: &uninstall-wheel | |
34 | name: Uninstall python wheel | |
35 | command: | | |
36 | pip show -f aubio | |
37 | pip uninstall --verbose --yes aubio | |
38 | ||
[73f02cc] | 39 | version: 2 |
40 | jobs: | |
[b34a3b4] | 41 | build-27: |
42 | docker: | |
[68d4565] | 43 | - image: cimg/python:2.7 |
[c9701ff] | 44 | steps: |
45 | - checkout | |
46 | - run: *apt-install | |
47 | - run: *pip-install | |
48 | - run: *build-wheel | |
49 | - run: *install-wheel | |
[548f60d] | 50 | - run: *test-pytest |
[ab8bffa] | 51 | - run: *uninstall-wheel |
[c9701ff] | 52 | - store_artifacts: |
53 | path: dist/ | |
54 | ||
55 | build-36: | |
56 | docker: | |
[68d4565] | 57 | - image: cimg/python:3.6 |
[73f02cc] | 58 | steps: |
59 | - checkout | |
60 | - run: *apt-install | |
[91ac33f] | 61 | - run: *pip-install |
[73f02cc] | 62 | - run: *build-wheel |
63 | - run: *install-wheel | |
[548f60d] | 64 | - run: *test-pytest |
[ab8bffa] | 65 | - run: *uninstall-wheel |
[73f02cc] | 66 | - store_artifacts: |
67 | path: dist/ | |
68 | ||
[ea7f48e] | 69 | build-310: |
[500f4c2] | 70 | docker: |
[ea7f48e] | 71 | - image: cimg/python:3.10 |
[500f4c2] | 72 | steps: |
73 | - checkout | |
74 | - run: *apt-install | |
75 | - run: *pip-install | |
76 | - run: *build-wheel | |
77 | - run: *install-wheel | |
[548f60d] | 78 | - run: *test-pytest |
[ab8bffa] | 79 | - run: *uninstall-wheel |
[500f4c2] | 80 | - store_artifacts: |
81 | path: dist/ | |
82 | ||
[ea7f48e] | 83 | build-310-nodeps: |
[f1baffd] | 84 | docker: |
[ea7f48e] | 85 | - image: cimg/python:3.10 |
[f1baffd] | 86 | steps: |
87 | - checkout | |
88 | - run: *pip-install | |
89 | - run: *build-wheel | |
90 | - run: *install-wheel | |
[548f60d] | 91 | - run: *test-pytest-nosounds |
[ab8bffa] | 92 | - run: *uninstall-wheel |
[f1baffd] | 93 | - store_artifacts: |
94 | path: dist/ | |
95 | ||
[73f02cc] | 96 | workflows: |
97 | version: 2 | |
98 | ||
99 | test-wheel: | |
100 | jobs: | |
[c9701ff] | 101 | - build-27 |
102 | - build-36 | |
[ea7f48e] | 103 | - build-310 |
104 | - build-310-nodeps |
Note: See TracBrowser
for help on using the repository browser.