source: .travis.yml @ 832b6c59

feature/cnnfeature/crepefix/ffmpeg5
Last change on this file since 832b6c59 was 832b6c59, checked in by Paul Brossier <piem@piem.org>, 4 years ago

[ci] set linux versions on travis

  • Property mode set to 100644
File size: 3.4 KB
Line 
1language: python
2
3matrix:
4  include:
5    - name: "Linux (Python 3.8)"
6      python: 3.8
7      os: linux
8      distro: bionic
9    - name: "Linux (Python 3.6)"
10      python: 3.6
11      os: linux
12      env: WAFOPTS="--build-type=debug"
13    - name: "Linux (Python 2.7)"
14      python: 2.7
15      os: linux
16      distro: trusty
17    - name: "Linux (Python pypy3.5)"
18      language: python
19      python: "pypy3.5"
20      os: linux
21    - name: "Linux (fftw3, no other deps)"
22      python: 3.8
23      os: linux
24      env: HAVE_AUBIO_DOUBLE=1 CFLAGS="-O3" WAFOPTS="--enable-fftw3 --disable-avcodec --disable-samplerate"
25    - name: "Linux (default, dpkg-buildflags)"
26      os: linux
27      env: CFLAGS="`dpkg-buildflags --get CFLAGS`" LDFLAGS="`dpkg-buildflags --get LDFLAGS`"
28
29    - name: "macOS (xcode11)"
30      language: shell
31      os: osx
32      osx_image: xcode11
33    - name: "macOS (xcode12, lib only)"
34      language: shell
35      os: osx
36      osx_image: xcode12
37      script:
38        - make test_lib_only_clean
39    - name: "macOS (xcode10, noopt, nodeps)"
40      language: shell
41      os: osx
42      osx_image: xcode10
43      env: CFLAGS="-Os" HAVE_AUBIO_DOUBLE=1 WAFOPTS="--disable-accelerate --disable-avcodec --disable-sndfile --disable-samplerate"
44    - name: "iOS"
45      language: shell
46      os: osx
47      env: WAFOPTS="--with-target-platform=ios --disable-avcodec --disable-sndfile --disable-samplerate" AUBIO_NOTESTS=1
48    - name: "iOSSimulator"
49      language: shell
50      os: osx
51      env: WAFOPTS="--with-target-platform=iosimulator --disable-avcodec --disable-sndfile --disable-samplerate" AUBIO_NOTESTS=1
52
53    - name: "Windows (Python 3.8.0, lib only)"
54      language: shell
55      os: windows
56      before_install:
57        - choco install python --version 3.8.0
58        - choco install make
59        - python -m pip install --upgrade pip
60      env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
61      script:
62        - make test_lib_only_clean
63    - name: "Windows (Python 2.7.11)"
64      language: shell
65      os: windows
66      before_install:
67        - choco install vcpython27
68        - choco install make
69        - python -m pip install --upgrade pip
70      env: PATH=/c/Python27:/c/Python27/Scripts:$PATH
71      script:
72        - make test_python_only_clean
73
74addons:
75  apt:
76    packages:
77    - bzip2
78    - libavcodec-dev
79    - libavformat-dev
80    - libavresample-dev
81    - libavutil-dev
82    - libsndfile1-dev
83    - libsamplerate-dev
84    - libjack-dev
85    - libasound2-dev
86    - libfftw3-dev
87    - sox
88    - lcov
89  homebrew:
90    packages:
91    - sox
92    - ffmpeg
93    - libsndfile
94    - lcov
95    update: true
96
97install:
98  - make getwaf deps_python
99  - which pip
100  - pip --version
101  - pip install coverage
102
103script:
104  - make create_test_sounds
105  - |
106    if [[ -z "$AUBIO_NOTESTS" ]]; then
107      make test_lib_python_clean
108      make coverage
109    else
110      make test_lib_only_clean
111    fi;
112
113after_success:
114  - |
115    if [[ -z "$AUBIO_NOTESTS" ]]; then
116      # upload to codecov
117      bash <(curl -s https://codecov.io/bash)
118    fi
119
120notifications:
121    irc:
122        channels:
123            - "irc.freenode.org#aubio"
124        use_notice: true
125    webhooks:
126        urls:
127            - https://webhooks.gitter.im/e/81e7733a5b1d977854b4
128        on_success: change  # options: [always|never|change] default: always
129        on_failure: always  # options: [always|never|change] default: always
130        on_start: never     # options: [always|never|change] default: always
Note: See TracBrowser for help on using the repository browser.