Merge pull request #40 from McSinyx/travis
[alure.git] / .travis.yml
blobe880d758f0fc1f7bc47b7b085f2a7f8801edb09a
1 language: cpp
3 addons:
4   apt:
5     sources:
6       - ubuntu-toolchain-r-test
7     packages:
8       - g++-4.9
9       - libopenal-dev
10       - libvorbis-dev
11       - libopusfile-dev
12       - libsndfile1-dev
13       - libphysfs-dev
14       - libdumb1-dev
15   homebrew:
16     packages:
17       - openal-soft
18       - libvorbis
19       - opusfile
20       - libsndfile
21       - physfs
22       - dumb
23     update: true
25 git:
26   depth: 1
28 jobs:
29   include:
30     - os: osx
31       script:
32         - cd build
33         - OPENALDIR=`brew --prefix openal-soft` cmake -DCMAKE_FIND_FRAMEWORK=NEVER ..
34         - cmake --build . --parallel `sysctl -n hw.ncpu`
35     - os: osx
36       env: NPROC=`sysctl -n hw.ncpu`
37     - os: linux
38       env: CC=gcc-4.9 CXX=g++-4.9 NPROC=`nproc`
40 script:
41   - cd build
42   - cmake ..
43   - cmake --build . --parallel $NPROC