-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
57 lines (55 loc) · 2.18 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
# Enable C++ support
language: cpp
sudo: required
dist: trusty
os:
- linux
#- osx
compiler:
- gcc
- clang
install:
#Linux
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -qq g++-6; fi
- if [ "$TRAVIS_OS_NAME" != "osx" ] && [ "$CXX" == "g++" ]; then export CXX="g++-6" CC="gcc-6"; fi
#OS X
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew unlink wget; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install wget; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ] && [ "$CC" == "gcc" ]; then export CC="gcc-6"; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ] && [ "$CC" == "gcc" ]; then export CXX="g++-6"; fi
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-6
- g++-6
- clang
# Build steps
before_script:
#Linux
#SFML
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then wget http://www.sfml-dev.org/files/SFML-2.4.0-linux-gcc-64-bit.tar.gz; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then tar xf SFML-2.4.0-linux-gcc-64-bit.tar.gz; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo cp -r SFML-2.4.0/lib/* /usr/local/lib/.; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo cp -r SFML-2.4.0/include/* /usr/local/include/.; fi
#Lua
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install lua5.2; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install liblua5.2-dev; fi
#OpenGL
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install libglu1-mesa-dev freeglut3-dev mesa-common-dev libglu1-mesa; fi
#OS X
#SFML
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then wget http://www.sfml-dev.org/files/SFML-2.4.0-osx-clang.tar.gz; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then tar xf SFML-2.4.0-osx-clang.tar.gz; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then sudo cp -r SFML-2.4.0-osx-clang/lib/* /usr/local/lib/.; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then sudo cp -r SFML-2.4.0-osx-clang/include/* /usr/local/include/.; fi
#Lua
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install lua52; fi
#OpenGL
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install fltk; fi
script:
- mkdir build
- cd build
- cmake .. && make