-
Notifications
You must be signed in to change notification settings - Fork 93
/
.travis.yml
66 lines (55 loc) · 1.62 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
language: c++
env:
global:
- CMAKE_OPTIONS="-DOPTION_BUILD_EXAMPLES=On -DOPTION_BUILD_TESTS=On"
matrix:
include:
- os: osx
osx_image: xcode9.1
env: CMAKE_CONFIGURATION=release BUILD_DIR=build
- os: osx
osx_image: xcode9.1
env: CMAKE_CONFIGURATION=debug BUILD_DIR=build-debug
- os: linux
compiler: clang
env: CMAKE_CONFIGURATION=release BUILD_DIR=build
- os: linux
compiler: clang
env: CMAKE_CONFIGURATION=debug BUILD_DIR=build-debug
- os: linux
compiler: gcc
env:
- CMAKE_CONFIGURATION=release BUILD_DIR=build
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- cmake
- g++-5
- os: linux
compiler: gcc
env:
- CMAKE_CONFIGURATION=debug BUILD_DIR=build-debug
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- cmake
- g++-5
before_install:
- cmake --version
- if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-add-repository ppa:cginternals/ppa -y; fi
- if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get update -qq; fi
- if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get install -qq libgl1-mesa-dev libegl1-mesa-dev mesa-common-dev libglew-dev libglfw3-dev libcpplocate-dev; fi
before_script:
- eval "${MATRIX_EVAL}"
- chmod +x ./configure
- ./configure
- ./configure $CMAKE_CONFIGURATION
script:
- travis_wait cmake --build $BUILD_DIR
- cmake --build $BUILD_DIR --target test