source: .travis.yml @ 2f02d51

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5
Last change on this file since 2f02d51 was 89bc6f4, checked in by Paul Brossier <piem@piem.org>, 7 years ago

.travis.yml: also upload to codecov.io

  • Property mode set to 100644
File size: 3.4 KB
RevLine 
[d13f0bb]1language: python
[bf45eb5]2
[ec6731c]3matrix:
4  include:
[5f9729d]5    - python: 3.5
[ec6731c]6      os: linux
7      compiler: gcc
8    - python: 3.4
9      os: linux
10      compiler: gcc
[95e0336]11    - python: 2.7
12      os: linux
13      compiler: gcc
[5f9729d]14    - language: C
15      os: osx
[9d8cdb55]16      osx_image: xcode8
[5f9729d]17      compiler: clang
18    - python: 3.5
[95e0336]19      os: linux
20      compiler: gcc
[38b7a69]21      env: CFLAGS="-Os" WAFOPTS="--disable-samplerate --disable-sndfile"
22    - python: 3.4
[95e0336]23      os: linux
24      compiler: gcc
[38b7a69]25      env: HAVE_AUBIO_DOUBLE=1 CFLAGS="-O3" WAFOPTS="--enable-fftw3"
[5f9729d]26    - python: 2.7
[95e0336]27      os: linux
28      compiler: gcc
[ced47c7]29      env: CFLAGS="`dpkg-buildflags --get CFLAGS`" LDFLAGS="`dpkg-buildflags --get LDFLAGS`"
[95e0336]30    - language: C
31      os: osx
[9d8cdb55]32      osx_image: xcode8
[95e0336]33      compiler: clang
[875d9d1]34      env: CFLAGS="-Os" HAVE_AUBIO_DOUBLE=1 WAFOPTS="--disable-accelerate"
[55d5612]35    - language: C
36      os: osx
[9d8cdb55]37      osx_image: xcode8
[55d5612]38      compiler: clang
[875d9d1]39      env: WAFOPTS="--enable-fat --disable-avcodec --disable-sndfile"
[55d5612]40    - language: C
41      os: osx
[9d8cdb55]42      osx_image: xcode8
[55d5612]43      compiler: clang
[875d9d1]44      env: WAFOPTS="--with-target-platform=ios --disable-avcodec --disable-sndfile" AUBIO_NOTESTS=1
[9d8cdb55]45    - language: C
46      os: osx
47      osx_image: xcode8
48      compiler: clang
[875d9d1]49      env: WAFOPTS="--with-target-platform=iosimulator --disable-avcodec --disable-sndfile" AUBIO_NOTESTS=1
50    - language: C
51      os: osx
52      osx_image: xcode8.2
53      compiler: clang
54      env: WAFOPTS="--enable-fat --disable-avcodec --disable-sndfile"
55    - language: C
56      os: osx
57      osx_image: xcode8.2
58      compiler: clang
59      env: WAFOPTS="--with-target-platform=ios --disable-avcodec --disable-sndfile" AUBIO_NOTESTS=1
60    - language: C
61      os: osx
62      osx_image: xcode8.2
63      compiler: clang
64      env: WAFOPTS="--with-target-platform=iosimulator --disable-avcodec --disable-sndfile" AUBIO_NOTESTS=1
[b8454c74]65
[51d0a3c]66# use trusty
[75023b6]67dist: trusty
[22b0807]68sudo: required
[75023b6]69
[082a1cf]70addons:
71  apt:
72    packages:
73    - bzip2
[75023b6]74    - libavcodec-dev
75    - libavformat-dev
76    - libavresample-dev
77    - libavutil-dev
[082a1cf]78    - libsndfile1-dev
79    - libsamplerate-dev
80    - libjack-dev
81    - libasound2-dev
82    - libfftw3-dev
[05c54ff]83    - sox
[39b686c]84    - lcov
[05c54ff]85
[fe5ff6d]86before_install:
[e6c83dc]87   - |
88     if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
89       brew update
90       brew install sox
[f4a5d37]91       brew install ffmpeg
[875d9d1]92       brew install libsndfile
[6409cba]93       brew install lcov
[e6c83dc]94       export PATH="$HOME/Library/Python/2.7/bin/:$PATH"
95     fi;
96
[323d330]97install:
[7a1bbbd]98  - travis_retry pip install --upgrade pip
99  - travis_retry make getwaf expandwaf deps_python
[e12d05f]100  - which pip
101  - pip --version
[c918a4d]102  - pip install python-coveralls
[39b686c]103  - gem install coveralls-lcov
[323d330]104
[bf45eb5]105script:
[797435f]106  - make create_test_sounds
[5b52a54]107  - |
108    if [[ -z "$AUBIO_NOTESTS" ]]; then
[38b7a69]109      make test_lib_python_clean
[39b686c]110      make coverage
[38b7a69]111    else
112      make test_lib_only_clean
113    fi;
[2d0e3fc]114
[c918a4d]115after_success:
[644c03a]116  - |
117    if [[ -z "$AUBIO_NOTESTS" ]]; then
[89bc6f4]118      # upload lcov coverage to coveralls.io
[39b686c]119      coveralls-lcov build/coverage.info
120      # upload python coverage
[1ae5fc5]121      #coveralls
[89bc6f4]122      # upload to codecov
123      bash <(curl -s https://codecov.io/bash)
[644c03a]124    fi
[c918a4d]125
[2d0e3fc]126notifications:
127    irc:
128        channels:
129            - "irc.freenode.org#aubio"
130        use_notice: true
[dae3292]131    webhooks:
132        urls:
133            - https://webhooks.gitter.im/e/81e7733a5b1d977854b4
134        on_success: change  # options: [always|never|change] default: always
135        on_failure: always  # options: [always|never|change] default: always
136        on_start: never     # options: [always|never|change] default: always
Note: See TracBrowser for help on using the repository browser.