-
Notifications
You must be signed in to change notification settings - Fork 36
/
.travis.yml
43 lines (35 loc) · 1017 Bytes
/
.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
language: cpp
os:
- linux
- osx
compiler:
- gcc
- clang
before_install:
# GCC update for linux, to ensure C++11 support.
- if [ $TRAVIS_OS_NAME == linux ]; then
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test;
sudo apt-get update -qq;
fi
# GLFW install on linux:
- if [ $TRAVIS_OS_NAME == linux ]; then
sudo add-apt-repository -y ppa:pyglfw/pyglfw;
sudo apt-get update -qq;
sudo apt-get install -y --no-install-recommends libglfw3-dev libxrandr-dev libxi-dev libxxf86vm-dev;
fi
# GLFW install on MacOS: (make sure brew can install GLFW in usr/local)
- if [ $TRAVIS_OS_NAME == osx ]; then
sudo chown -R $(whoami) /usr/local;
brew update;
brew install glfw3;
fi
install:
# Finish the GCC install for linux:
- if [ $TRAVIS_OS_NAME == linux ]; then
sudo apt-get install -qq g++-5;
export CXX="g++-5";
export CC="gcc-5";
fi
script:
- $CXX --version
- make -C samples