-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
91 lines (86 loc) · 1.9 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
85
86
87
88
89
90
91
language: cpp
matrix:
include:
#Linux - Emscripten
- os: linux
env:
- BUILD_CONFIG=dist
- COMPILER=emcc
# Windows:
- os: windows
env:
- BUILD_CONFIG=debug
- COMPILER=msvc
- os: windows
env:
- BUILD_CONFIG=release
- COMPILER=msvc
- os: windows
env:
- BUILD_CONFIG=dist
- COMPILER=msvc
# Desktop Linux:
#Linux - GCC
- os: linux
env:
- BUILD_CONFIG=debug
- COMPILER=gcc
- os: linux
env:
- BUILD_CONFIG=release
- COMPILER=gcc
- os: linux
env:
- BUILD_CONFIG=dist
- COMPILER=gcc
#Linux - Clang
- os: linux
env:
- BUILD_CONFIG=debug
- COMPILER=clang
- os: linux
env:
- BUILD_CONFIG=release
- COMPILER=clang
- os: linux
env:
- BUILD_CONFIG=dist
- COMPILER=clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-9
- g++-9
- libglu1-mesa-dev
- freeglut3-dev
- mesa-common-dev
- xorg-dev
- e2fslibs-dev
- nettle-dev
- acl-dev
- libghc-bzlib-dev
- lzma-dev
- libroslz4-dev
install:
- |
if [ $TRAVIS_OS_NAME == "linux" ]
then
wget https://github.com/premake/premake-core/releases/download/v5.0.0-alpha14/premake-5.0.0-alpha14-linux.tar.gz -O premake.tar.gz
tar -xf premake.tar.gz
chmod +x premake5
export PATH=$PATH:$(pwd)
gcc -v && g++ -v --version
fi
- |
if [ $COMPILER == "emcc" ]
then
wget -q https://github.com/emscripten-core/emsdk/archive/master.tar.gz
tar -xvf master.tar.gz
emsdk-master/emsdk update
emsdk-master/emsdk install latest-fastcomp
emsdk-master/emsdk activate latest-fastcomp
fi
script:
- python .github/CI/build.py $TRAVIS_OS_NAME $COMPILER $BUILD_CONFIG