add osx to travis
[platform/upstream/libvorbis.git] / .travis.yml
1 language: c
2
3 os:
4   - linux
5   - osx
6
7 compiler:
8   - gcc
9   - clang
10
11 env:
12   - BUILD_SYSTEM=AUTOTOOLS
13   - BUILD_SYSTEM=CMAKE
14
15 addons:
16   apt:
17     packages:
18     - libogg-dev
19
20 install:
21   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew bundle; fi
22
23 script:
24   - if [[ "$BUILD_SYSTEM" == "AUTOTOOLS" ]] ; then ./autogen.sh && ./configure && make -j2 V=1 distcheck; fi
25   - if [[ "$BUILD_SYSTEM" == "CMAKE" ]] ; then mkdir build && pushd build && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release .. && cmake --build . && popd; fi