source:
.circleci/config.yml
@
f1baffd
Last change on this file since f1baffd was f1baffd, checked in by , 6 years ago | |
---|---|
|
|
File size: 1.9 KB |
Rev | Line | |
---|---|---|
[73f02cc] | 1 | apt-run: &apt-install |
2 | name: Install apt packages | |
3 | command: | | |
[f70e181] | 4 | sudo apt-get update |
5 | sudo apt-get -y install make sox pkg-config libavcodec-dev libavformat-dev libavresample-dev libavutil-dev libsndfile1-dev libsamplerate-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 | |
22 | test-nose2: &test-nose2 | |
23 | name: Test python wheel | |
24 | command: | | |
25 | make create_test_sounds | |
[4103cb4] | 26 | PATH=/home/circleci/.local/bin:$PATH nose2 -v |
[73f02cc] | 27 | |
28 | version: 2 | |
29 | jobs: | |
[b34a3b4] | 30 | build-27: |
31 | docker: | |
[a4aa960] | 32 | - image: circleci/python:2.7 |
[c9701ff] | 33 | steps: |
34 | - checkout | |
35 | - run: *apt-install | |
36 | - run: *pip-install | |
37 | - run: *build-wheel | |
38 | - run: *install-wheel | |
39 | - run: *test-nose2 | |
40 | - store_artifacts: | |
41 | path: dist/ | |
42 | ||
43 | build-36: | |
44 | docker: | |
[a4aa960] | 45 | - image: circleci/python:3.6 |
[73f02cc] | 46 | steps: |
47 | - checkout | |
48 | - run: *apt-install | |
[91ac33f] | 49 | - run: *pip-install |
[73f02cc] | 50 | - run: *build-wheel |
51 | - run: *install-wheel | |
52 | - run: *test-nose2 | |
53 | - store_artifacts: | |
54 | path: dist/ | |
55 | ||
[500f4c2] | 56 | build-37: |
57 | docker: | |
58 | - image: circleci/python:3.7 | |
59 | steps: | |
60 | - checkout | |
61 | - run: *apt-install | |
62 | - run: *pip-install | |
63 | - run: *build-wheel | |
64 | - run: *install-wheel | |
65 | - run: *test-nose2 | |
66 | - store_artifacts: | |
67 | path: dist/ | |
68 | ||
[f1baffd] | 69 | build-37-nodeps: |
70 | docker: | |
71 | - image: circleci/python:3.7 | |
72 | steps: | |
73 | - checkout | |
74 | - run: *pip-install | |
75 | - run: *build-wheel | |
76 | - run: *install-wheel | |
77 | - run: pip show -f aubio | |
78 | - run: pip uninstall aubio | |
79 | - store_artifacts: | |
80 | path: dist/ | |
81 | ||
[73f02cc] | 82 | workflows: |
83 | version: 2 | |
84 | ||
85 | test-wheel: | |
86 | jobs: | |
[c9701ff] | 87 | - build-27 |
88 | - build-36 | |
[500f4c2] | 89 | - build-37 |
[f1baffd] | 90 | - build-37-nodeps |
Note: See TracBrowser
for help on using the repository browser.