forked from OGRECave/ogre
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
76 lines (76 loc) · 2.38 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
language: cpp
sudo: required
dist: xenial
services:
- xvfb
branches:
only:
- master
addons:
apt:
sources:
- sourceline: "deb http://archive.ubuntu.com/ubuntu/ xenial multiverse"
- sourceline: "deb http://archive.ubuntu.com/ubuntu/ xenial-backports universe"
packages:
- cmake
- libxaw7-dev
- libzzip-dev
- libxrandr-dev
- libfreetype6-dev
- libxt-dev
- libboost-all-dev
- libgles2-mesa-dev
- mesa-common-dev
- libgl1-mesa-dev
- libglu1-mesa-dev # legacy GL RenderSystem only
- python3-dev
- python3-lxml # for validate script
- nvidia-cg-dev
- swig3.0
before_script:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update && brew install freetype libzzip sdl2 ; fi
osx_image: xcode10.1
env:
- TEST=TRUE
- GL3ES=TRUE # build GL3Plus and GLES2 Rendersystems
- ANDROID=TRUE
- IOS=TRUE
compiler:
- clang
- gcc
matrix:
exclude:
- os: linux
compiler: clang
- os: linux
env: IOS=TRUE
- os: linux
env: GL3ES=TRUE
- os: osx
compiler: gcc
- os: osx
env: TEST=TRUE
- os: osx
env: ANDROID=TRUE
script:
- cmake -P ci-build.cmake
- BUILD_CMD="cmake --build build"
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then BUILD_CMD="$BUILD_CMD -- -k -j 2" ; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then BUILD_CMD="set -o pipefail && $BUILD_CMD | xcpretty" ; fi
- echo $BUILD_CMD && eval $BUILD_CMD
# run unit tests
- if [ $TEST ]; then build/bin/Test_Ogre ; fi
- if [ "$TRAVIS_OS_NAME" == "osx" -a "$IOS" != "TRUE" ]; then build/bin/Debug/Test_Ogre.app/Contents/MacOS/Test_Ogre ; fi
# XMLConverter works & validates
- if [ $TEST ]; then build/bin/OgreXMLConverter Samples/Media/models/jaiqua.mesh && build/bin/OgreXMLConverter Samples/Media/models/jaiqua.skeleton ; fi
- if [ $TEST ]; then python3 Tools/XMLConverter/docs/validate.py Samples/Media/models/jaiqua.mesh.xml ; fi
# run visual tests
- if [ $TEST ]; then cd build/bin && ./TestContext -rs "OpenGL Rendering Subsystem" ; fi
# verify that the python modules are loadable
- if [ $TEST ]; then cd ../lib && python -c "import _Ogre; import _RTShader" ; fi
# whitespace sanity
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then git diff --check ${TRAVIS_COMMIT_RANGE/.../..} ; fi
os:
- linux
- osx
cache: apt