-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
84 lines (80 loc) · 2.12 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
76
77
78
79
80
81
82
83
84
language: c++
dist: trusty
sudo: required
matrix:
include:
- os: linux
compiler: gcc-6
addons:
apt:
sources:
- george-edison55-precise-backports
- ubuntu-toolchain-r-test
packages:
- gcc-6
- g++-6
- cmake
- cmake-data
- libglu1-mesa-dev
- libx11-dev
- libxxf86vm-dev
- libxrandr-dev
- libxinerama-dev
- libxcursor-dev
- libxi-dev
env:
- C_COMPILER=gcc-6
- CXX_COMPILER=g++-6
- os: linux
compiler: clang-3.9
addons:
apt:
sources:
- george-edison55-precise-backports
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.9
packages:
- clang-3.9
- cmake
- cmake-data
- libglu1-mesa-dev
- libx11-dev
- libxxf86vm-dev
- libxrandr-dev
- libxinerama-dev
- libxcursor-dev
- libxi-dev
env:
- C_COMPILER=clang-3.9
- CXX_COMPILER=clang++-3.9
- os: osx
compiler: clang
env:
- C_COMPILER=clang
- CXX_COMPILER=clang++
cache:
directories:
- ${TRAVIS_BUILD_DIR}/deps/glfw
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update;
brew install glfw;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
export GLFW_ROOT="${TRAVIS_BUILD_DIR}/deps/glfw" ;
if [[ -z "$(ls -A ${GLFW_ROOT})" ]]; then
(
travis_retry git clone --depth 1 -b 3.2.1 https://github.com/glfw/glfw.git &&
cd glfw && mkdir build && cd build &&
cmake -D GLFW_INSTALL=ON -D GLFW_BUILD_EXAMPLES=OFF
-D GLFW_BUILD_DOCS=OFF -D GLFW_BUILD_TESTS=OFF
-D CMAKE_INSTALL_PREFIX=${GLFW_ROOT} .. &&
make install
)
fi
fi
script:
- mkdir build && cd build && cmake
-D CMAKE_C_COMPILER=${C_COMPILER} -D CMAKE_CXX_COMPILER=${CXX_COMPILER}
-D FindGLFW_Test_GLFW_ROOT=${GLFW_ROOT} .. &&
make -j2