Update to C++14
[alure.git] / .travis.yml
blobc98d1d8b0ae89a35b77b3fbf469a1852c88bee32
1 language: cpp
2 matrix:
3   include:
4     - os: linux
5       addons:
6         apt:
7           sources:
8             - ubuntu-toolchain-r-test
9           packages:
10             - g++-4.9
11       env:
12          - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
13     - os: osx
14       osx_image: xcode8
15 sudo: required
16 before_install:
17   - >
18     if [[ x"${MATRIX_EVAL}" != x"" ]]; then
19       eval "${MATRIX_EVAL}"
20     fi
21 install:
22   - >
23     if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
24       # Install OpenAL, VorbisFile, OpusFile, libsndfile, PhysicsFS,
25       # and DUMB dependencies for decoders and examples.
26       sudo apt-get install -qq \
27         libopenal-dev \
28         libvorbis-dev \
29         libopusfile-dev \
30         libsndfile1-dev \
31         libphysfs-dev \
32         libdumb1-dev
33     fi
34 script:
35   - cd build
36   - cmake ..
37   - |
38     if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
39       cmake --build . --parallel `nproc`
40     elif [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
41       cmake --build .
42     fi