Merge branch 'master' into coveralls
[aubio.git] / .travis.yml
index e244895..ee5b1cd 100644 (file)
@@ -13,6 +13,7 @@ matrix:
       compiler: gcc
     - language: C
       os: osx
+      osx_image: xcode8
       compiler: clang
     - python: 3.5
       os: linux
@@ -25,24 +26,55 @@ matrix:
     - python: 2.7
       os: linux
       compiler: gcc
-      env: HAVE_AUBIO_DOUBLE=1
+      env: CFLAGS="`dpkg-buildflags --get CFLAGS`" LDFLAGS="`dpkg-buildflags --get LDFLAGS`"
     - language: C
       os: osx
+      osx_image: xcode8
       compiler: clang
-      env: WAFOPTS="--disable-avcodec --disable-accelerate"
+      env: CFLAGS="-Os" HAVE_AUBIO_DOUBLE=1 WAFOPTS="--disable-accelerate"
     - language: C
       os: osx
+      osx_image: xcode8
       compiler: clang
-      env: WAFOPTS="--enable-fat --disable-avcodec"
+      env: WAFOPTS="--enable-fat --disable-avcodec --disable-sndfile"
     - language: C
       os: osx
+      osx_image: xcode8
       compiler: clang
-      env: WAFOPTS="--with-target-platform=ios --disable-avcodec" AUBIO_NOTESTS=1
+      env: WAFOPTS="--with-target-platform=ios --disable-avcodec --disable-sndfile" AUBIO_NOTESTS=1
+    - language: C
+      os: osx
+      osx_image: xcode8
+      compiler: clang
+      env: WAFOPTS="--with-target-platform=iosimulator --disable-avcodec --disable-sndfile" AUBIO_NOTESTS=1
+    - language: C
+      os: osx
+      osx_image: xcode8.2
+      compiler: clang
+      env: WAFOPTS="--enable-fat --disable-avcodec --disable-sndfile"
+    - language: C
+      os: osx
+      osx_image: xcode8.2
+      compiler: clang
+      env: WAFOPTS="--with-target-platform=ios --disable-avcodec --disable-sndfile" AUBIO_NOTESTS=1
+    - language: C
+      os: osx
+      osx_image: xcode8.2
+      compiler: clang
+      env: WAFOPTS="--with-target-platform=iosimulator --disable-avcodec --disable-sndfile" AUBIO_NOTESTS=1
+
+# use trusty
+dist: trusty
+sudo: required
 
 addons:
   apt:
     packages:
     - bzip2
+    - libavcodec-dev
+    - libavformat-dev
+    - libavresample-dev
+    - libavutil-dev
     - libsndfile1-dev
     - libsamplerate-dev
     - libjack-dev
@@ -56,6 +88,7 @@ before_install:
        brew update
        brew install sox
        brew install ffmpeg
+       brew install libsndfile
        export PATH="$HOME/Library/Python/2.7/bin/:$PATH"
      fi;
 
@@ -64,18 +97,30 @@ install:
   - travis_retry make getwaf expandwaf deps_python
   - which pip
   - pip --version
+  - pip install python-coveralls
 
 script:
   - make create_test_sounds
-  - if [[ -z "$AUBIO_NOTESTS" ]]; then
+  - |
+    if [[ -z "$AUBIO_NOTESTS" ]]; then
+      export NOSE2="coverage run --source=aubio `which nose2`"
       make test_lib_python_clean
       make test_python_only_clean
     else
       make test_lib_only_clean
     fi;
 
+after_success:
+  - coveralls
+
 notifications:
     irc:
         channels:
             - "irc.freenode.org#aubio"
         use_notice: true
+    webhooks:
+        urls:
+            - https://webhooks.gitter.im/e/81e7733a5b1d977854b4
+        on_success: change  # options: [always|never|change] default: always
+        on_failure: always  # options: [always|never|change] default: always
+        on_start: never     # options: [always|never|change] default: always