forked from mosra/magnum-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
travis.yml
188 lines (179 loc) · 6.1 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
# kate: indent-width 2;
addons:
apt:
packages:
- libgl1-mesa-dev
- g++-4.7
- libfreetype6-dev
- libjpeg-dev
- libopenal-dev
- libpng12-dev
- libqt4-dev
- libdevil-dev
- libharfbuzz-dev
- libassimp-dev
matrix:
include:
- language: cpp
os: linux
dist: trusty
compiler: gcc
env:
- JOBID=linux-desktop
- TARGET=desktop
- language: cpp
os: linux
dist: trusty
compiler: gcc
env:
- JOBID=linux-desktop-nondeprecated
- TARGET=desktop
- BUILD_DEPRECATED=OFF
- language: cpp
os: linux
dist: trusty
compiler: clang
env:
- JOBID=linux-desktop-sanitizers
- TARGET=desktop-sanitizers
- CMAKE_CXX_FLAGS=-fsanitize=address
addons:
apt:
sources:
- llvm-toolchain-trusty
packages:
- libgl1-mesa-dev
- clang-3.8
- libfreetype6-dev
- libjpeg-dev
- libopenal-dev
- libpng12-dev
- libqt4-dev
- libdevil-dev
- libharfbuzz-dev
- libassimp-dev
- language: cpp
os: linux
dist: trusty
compiler: gcc
env:
- JOBID=linux-es2
- TARGET=desktop-gles
- TARGET_GLES2=ON
- language: cpp
os: linux
dist: trusty
compiler: gcc
env:
- JOBID=linux-es3
- TARGET=desktop-gles
- TARGET_GLES2=OFF
- language: cpp
os: osx
compiler: clang
env:
- JOBID=macos-desktop
- TARGET=desktop
- language: cpp
os: osx
osx_image: xcode7.3
env:
- JOBID=ios-es2
- TARGET=ios-simulator
- TARGET_GLES2=ON
- language: cpp
os: osx
osx_image: xcode7.3
env:
- JOBID=ios-es3
- TARGET=ios-simulator
- TARGET_GLES2=OFF
- language: cpp
os: osx
env:
- JOBID=emscripten-webgl1
- TARGET=emscripten
- TARGET_GLES2=ON
- language: cpp
os: osx
env:
- JOBID=emscripten-webgl2
- TARGET=emscripten
- TARGET_GLES2=OFF
- language: android
os: linux
dist: precise
env:
- JOBID=android-es2
- TARGET=android
- TARGET_GLES2=ON
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.7
android:
components:
- build-tools-19.0.0
- android-19
- sys-img-armeabi-v7a-android-19
- language: android
os: linux
dist: precise
env:
- JOBID=android-es3
- TARGET=android
- TARGET_GLES2=OFF
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.7
android:
components:
- build-tools-19.0.0
- android-19
- sys-img-armeabi-v7a-android-19
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/00ec7a9066bb0fec98f3
on_success: change
on_failure: always
on_start: never
cache:
directories:
- $HOME/cmake
install:
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TARGET" == "desktop" ] && [ "$BUILD_DEPRECATED" != "OFF" ]; then pip install --user urllib3[secure] && pip install --user cpp-coveralls && export CMAKE_CXX_FLAGS="$CMAKE_CXX_FLAGS --coverage"; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ ! "$TARGET" == "desktop-sanitizers" ]; then export CXX=g++-4.7; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TARGET" == "desktop-sanitizers" ]; then export CXX=clang++-3.8; fi
- if [ "$BUILD_DEPRECATED" != "OFF" ]; then export BUILD_DEPRECATED=ON; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then export PLATFORM_GL_API=GLX; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then export WITH_COLLADAIMPORTER=ON; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TARGET" == "android" ]; then wget -nc http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin && chmod +x android-*.bin && ./android-*.bin -y | grep -v Extracting; fi
# Because Android build has to use 12.04 and CMake 2.8.12 stopped working there
# since May 2017, I have to manually download a prebuilt version. Also, the
# PATH setting can't be cached, so it's separate (bit me two times already)
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TARGET" == "android" ] && [ ! -e "$HOME/cmake/bin" ]; then cd $HOME ; wget -nc --no-check-certificate https://cmake.org/files/v2.8/cmake-2.8.12.2-Linux-i386.tar.gz && mkdir -p cmake && cd cmake && tar --strip-components=1 -xzvf ../cmake-2.8.12.2-Linux-i386.tar.gz && cd $TRAVIS_BUILD_DIR ; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TARGET" == "android" ]; then export PATH=$HOME/cmake/bin:$PATH; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ] && [ "$TARGET" == "desktop" ]; then export PLATFORM_GL_API=CGL; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ] && [ "$TARGET" == "desktop" ]; then export WITH_COLLADAIMPORTER=OFF; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ] && [ "$TARGET" == "desktop" ]; then brew install devil; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ] && [ "$TARGET" == "ios-simulator" ]; then gem install xcpretty; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ] && [ "$TARGET" == "emscripten" ]; then brew install emscripten && export LLVM=/usr/local/opt/emscripten/libexec/llvm/bin && emcc; fi
# HarfBuzz, Assimp
- if [ "$TRAVIS_OS_NAME" == "osx" ] && [ "$TARGET" == "desktop" ]; then brew install harfbuzz assimp; fi
script:
- if [ "$TRAVIS_OS_NAME" == "linux" ] && ( [ "$TARGET" == "desktop" ] || [ "$TARGET" == "desktop-sanitizers" ] ); then ./package/ci/travis-desktop.sh; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TARGET" == "desktop-gles" ]; then ./package/ci/travis-desktop-gles.sh; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TARGET" == "android" ]; then ./package/ci/travis-android-arm.sh; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ] && [ "$TARGET" == "desktop" ]; then ./package/ci/travis-desktop.sh; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ] && [ "$TARGET" == "ios-simulator" ]; then ./package/ci/travis-ios-simulator.sh; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ] && [ "$TARGET" == "emscripten" ]; then ./package/ci/travis-emscripten.sh; fi
# Travis somehow is not able to gather all output, try to force it using this
- sync
after_success:
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TARGET" == "desktop" ] && [ "$BUILD_DEPRECATED" != "OFF" ]; then coveralls --gcov /usr/bin/gcov-4.7 -i src/ -E ".*/(Test|external)/.*" --gcov-options '\-lp' > /dev/null; fi