-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
67 lines (62 loc) · 1.67 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
dist: trusty
sudo: require
language: cpp
compiler:
- gcc
branches:
only:
- master
- tr
matrix:
include:
# works on Precise and Trusty
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libx11-dev
- freeglut3-dev
- libjpeg-dev
- libfreetype6-dev
- libxrandr-dev
- libglew-dev
- libsndfile1-dev
- libopenal-dev
- libudev-dev
- cmake
env:
- MATRIX_EVAL="CC=gcc && CXX=g++"
before_install:
#- sudo apt-get -qq update
#- sudo apt-get install -y libsfml-dev
- sudo apt-get install libx11-dev freeglut3-dev libjpeg-dev libfreetype6-dev libxrandr-dev libglew-dev libsndfile1-dev libopenal-dev libudev-dev
- mkdir sf
- cd sf
- git clone https://github.com/SFML/SFML.git
- cd SFML
- cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Debug -D BUILD_SHARED_LIBS=TRUE .
- make
- sudo make install
- cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Debug -D BUILD_SHARED_LIBS=FALSE .
- make
- sudo make install
- cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=TRUE .
- make
- sudo make install
- cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=FALSE .
- make
- sudo make install
- eval "${MATRIX_EVAL}"
script:
#- sudo ln -s /usr/bin/gcc-6 /usr/local/bin/gcc
#- sudo ln -s /usr/bin/g++-6 /usr/local/bin/g++
- gcc -v && g++ -v && cmake --version
# Build it now
- cd ..
- cd ..
- cmake CMakeLists.txt
- make
notifications:
email: false