source: .circleci/config.yml @ 538eada

feature/autosinkfeature/constantqfeature/pitchshiftfeature/pydocstringsfeature/timestretch
Last change on this file since 538eada was 538eada, checked in by Paul Brossier <piem@piem.org>, 14 months ago

.circleci/config.yml: add simple macos config

  • Property mode set to 100644
File size: 1.8 KB
Line 
1apt-run: &apt-install
2  name: Install apt packages
3  command: |
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
6
7pip-install: &pip-install
8  name: Install pip dependencies
9  command: |
10    pip install --user -r requirements.txt
11
12build-wheel: &build-wheel
13  name: Build python wheel
14  command: |
15    pip wheel -v -v -v --wheel-dir=dist .
16
17install-wheel: &install-wheel
18  name: Install python wheel
19  command: |
20    pip install --user dist/aubio*.whl
21
22test-nose2: &test-nose2
23  name: Test python wheel
24  command: |
25    make create_test_sounds
26    PATH=/home/circleci/.local/bin:$PATH nose2 -v
27
28version: 2
29jobs:
30  build-27:
31    docker:
32      - image: circleci/python:2.7
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:
45      - image: circleci/python:3.6
46    steps:
47      - checkout
48      - run: *apt-install
49      - run: *pip-install
50      - run: *build-wheel
51      - run: *install-wheel
52      - run: *test-nose2
53      - store_artifacts:
54          path: dist/
55
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
69  build-macos93:
70    macos:
71      xcode: "9.3.0"
72    steps:
73      - checkout
74      - run: *pip-install
75      - run: *build-wheel
76      - run: *install-wheel
77      - run: *test-nose2
78      - store_artifacts:
79          path: dist/
80
81workflows:
82  version: 2
83
84  test-wheel:
85    jobs:
86      - build-27
87      - build-36
88      - build-37
89      - build-macos93
Note: See TracBrowser for help on using the repository browser.