-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
75 lines (66 loc) · 1.74 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
67
68
69
70
71
72
73
74
75
language: cpp
sudo: false
cache:
directories:
- $HOME/lib
matrix:
include:
- os: linux
compiler: gcc
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages:
- gcc-7
- g++-7
- libx11-dev
- libgl1-mesa-dev
- xorg-dev
- libglu1-mesa-dev
- libglew-dev
- libopenal-dev
env: COMPILER=g++-7
- os: linux
compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-7
packages:
- clang-7
- libx11-dev
- libgl1-mesa-dev
- xorg-dev
- libglu1-mesa-dev
- libglew-dev
- libopenal-dev
env: COMPILER=clang++-7
before_install:
- git submodule update --init
- export CXX="$COMPILER"
- ${CXX} --version
- echo $LANG
- echo $LC_ALL
- cmake --version
- ./travis/install_deps.sh
- export GLFW_ROOT_DIR=$HOME/lib/$COMPILER/glfw-lib
- export GLM_ROOT_DIR=$HOME/lib/$COMPILER/glm
- export GTEST_ROOT=$HOME/lib/$COMPILER/googletest-release-1.7.0
install:
before_script:
- mkdir -p build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Debug ..
script:
- make
- cd bin
- ./unit_test
- cd ..
- make package
notifications:
irc:
channels:
- "chat.freenode.net#trillek"
on_success: change
on_failure: always