.travis.yml: move xcode8 to osx only, add iosimulator
[aubio.git] / .travis.yml
1 language: python
2
3 matrix:
4   include:
5     - python: 3.5
6       os: linux
7       compiler: gcc
8     - python: 3.4
9       os: linux
10       compiler: gcc
11     - python: 2.7
12       os: linux
13       compiler: gcc
14     - language: C
15       os: osx
16       osx_image: xcode8
17       compiler: clang
18     - python: 3.5
19       os: linux
20       compiler: gcc
21       env: CFLAGS="-Os" WAFOPTS="--disable-samplerate --disable-sndfile"
22     - python: 3.4
23       os: linux
24       compiler: gcc
25       env: HAVE_AUBIO_DOUBLE=1 CFLAGS="-O3" WAFOPTS="--enable-fftw3"
26     - python: 2.7
27       os: linux
28       compiler: gcc
29       env: CFLAGS="`dpkg-buildflags --get CFLAGS`" LDFLAGS="`dpkg-buildflags --get LDFLAGS`"
30     - language: C
31       os: osx
32       osx_image: xcode8
33       compiler: clang
34       env: CFLAGS="-O0" WAFOPTS="--disable-avcodec --disable-accelerate"
35     - language: C
36       os: osx
37       osx_image: xcode8
38       compiler: clang
39       env: WAFOPTS="--enable-fat --disable-avcodec" HAVE_AUBIO_DOUBLE=1
40     - language: C
41       os: osx
42       osx_image: xcode8
43       compiler: clang
44       env: WAFOPTS="--with-target-platform=ios --disable-avcodec" AUBIO_NOTESTS=1
45     - language: C
46       os: osx
47       osx_image: xcode8
48       compiler: clang
49       env: WAFOPTS="--with-target-platform=iosimulator --disable-avcodec" AUBIO_NOTESTS=1
50
51 # use trusty
52 dist: trusty
53 sudo: required
54
55 addons:
56   apt:
57     packages:
58     - bzip2
59     - libavcodec-dev
60     - libavformat-dev
61     - libavresample-dev
62     - libavutil-dev
63     - libsndfile1-dev
64     - libsamplerate-dev
65     - libjack-dev
66     - libasound2-dev
67     - libfftw3-dev
68     - sox
69
70 before_install:
71    - |
72      if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
73        brew update
74        brew install sox
75        brew install ffmpeg
76        export PATH="$HOME/Library/Python/2.7/bin/:$PATH"
77      fi;
78
79 install:
80   - travis_retry pip install --upgrade pip
81   - travis_retry make getwaf expandwaf deps_python
82   - which pip
83   - pip --version
84
85 script:
86   - make create_test_sounds
87   - |
88     if [[ -z "$AUBIO_NOTESTS" ]]; then
89       make test_lib_python_clean
90       make test_python_only_clean
91     else
92       make test_lib_only_clean
93     fi;
94
95 notifications:
96     irc:
97         channels:
98             - "irc.freenode.org#aubio"
99         use_notice: true