.travis.yml: install sox on osx
[aubio.git] / .travis.yml
1 language: python
2
3 matrix:
4   include:
5     - python: 2.7
6       os: linux
7       compiler: gcc
8       env: ARCH=x86_64
9     - python: 2.7
10       os: linux
11       compiler: gcc
12       env: ARCH=i386
13     - python: 3.4
14       os: linux
15       compiler: gcc
16       env: ARCH=x86_64
17     - python: 3.4
18       os: linux
19       compiler: gcc
20       env: ARCH=i386
21     - language: C
22       os: osx
23       compiler: clang
24       env: ARCH=x86_64
25     - language: C
26       os: osx
27       compiler: clang
28       env: ARCH=i386
29     - python: 2.7
30       os: linux
31       compiler: gcc
32       env: ARCH=x86_64 HAVE_DOUBLE=1
33     - python: 2.7
34       os: linux
35       compiler: gcc
36       env: ARCH=i386 HAVE_DOUBLE=1
37     - python: 3.4
38       os: linux
39       compiler: gcc
40       env: ARCH=x86_64 HAVE_DOUBLE=1
41     - python: 3.4
42       os: linux
43       compiler: gcc
44       env: ARCH=i386 HAVE_DOUBLE=1
45     - language: C
46       os: osx
47       compiler: clang
48       env: ARCH=x86_64 HAVE_DOUBLE=1
49     - language: C
50       os: osx
51       compiler: clang
52       env: ARCH=i386 HAVE_DOUBLE=1
53
54 addons:
55   apt:
56     packages:
57     - bzip2
58     - libsndfile1-dev
59     - libsamplerate-dev
60     - libjack-dev
61     - libasound2-dev
62     - libfftw3-dev
63     - sox
64
65 before_install:
66    - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update     ; fi
67    - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install sox; fi
68
69 install:
70   - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then travis_retry pip install nose2; fi
71   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then travis_retry pip install --user nose2; fi
72
73 script:
74   - make create_test_sounds
75   - make build
76   - make build_python
77   - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make test_python; fi
78   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then PATH="$HOME/Library/Python/2.7/bin/:$PATH" make test_python_osx; fi
79   - make clean_python
80   - make clean
81   - make distcheck
82
83 notifications:
84     irc:
85         channels:
86             - "irc.freenode.org#aubio"
87         use_notice: true