-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (34 loc) · 1.23 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
language:
- cpp
compiler:
- gcc
before_install:
- sudo add-apt-repository -y ppa:zoogie/sdl2-snapshots
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get install build-essential -y
- sudo apt-get install mesa-common-dev -y
- sudo apt-get install libglu1-mesa-dev -y
- sudo apt-get update -qq
- sudo apt-get install unzip -y
- sudo apt-get install software-properties-common -y
- sudo add-apt-repository ppa:george-edison55/cmake-3.x -y
- sudo apt-get update -y
- sudo apt-get install cmake -y
install:
- sudo apt-get install -qq libsdl2-dev libsdl2-image-dev gcc-6 g++-6 -y
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 90
- export GOPATH=$(pwd)
- go get -v github.com/veandco/go-sdl2/sdl
- cd CGameEngine && mkdir Dependencies && cd Dependencies && mkdir include && cd include && wget https://github.com/g-truc/glm/archive/master.zip && unzip master.zip && cp -R glm-master/glm ./
- wget https://sourceforge.net/projects/glew/files/glew/2.1.0/glew-2.1.0.zip && unzip glew-2.1.0.zip && cp -R glew-2.1.0/include/GL ./
before_script:
- export CXX=g++-6
- export CC=gcc-6
script:
- ls
- cd ../../
- cmake .
- cmake -G "Unix Makefiles"
- make
- cd Tests/
- ./tests