forked from OGRECave/ogre
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (71 loc) · 2.09 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
language: cpp
sudo: required
dist: trusty
branches:
only:
- master
addons:
apt:
sources:
- sourceline: "deb http://archive.ubuntu.com/ubuntu/ trusty multiverse"
- sourceline: "deb http://archive.ubuntu.com/ubuntu/ trusty-backports universe"
- sourceline: "ppa:nschloe/swig-backports"
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
- nvidia-cg-dev
- swig3.0
before_script:
# we start compilation afterwards anyway, so no need to sleep
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then export DISPLAY=:99.0 && sh -e /etc/init.d/xvfb start ; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update && brew install freetype libzzip sdl2 ; fi
osx_image: xcode8.3
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 ."
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then BUILD_CMD="$BUILD_CMD -- -k" ; 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 bin/Test_Ogre ; fi
- if [ "$TRAVIS_OS_NAME" == "osx" -a "$IOS" != "TRUE" ]; then bin/Debug/Test_Ogre.app/Contents/MacOS/Test_Ogre ; fi
# run visual tests
- if [ $TEST ]; then cd bin && ./TestContext -rs "OpenGL Rendering Subsystem" ; fi
# verify that the python modules are loadable
- if [ $TEST ]; then cd ../lib && python3 -c "import _Ogre; import _OgreRTShader" ; fi
os:
- linux
- osx
cache: apt