-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
71 lines (61 loc) · 2.33 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
os:
# - linux
- osx
# language: cpp
language: objective-c
compiler:
- clang
# - gcc
before_install:
# nomlib dependencies (SDL, OpenAL, libsndfile, libmagic, GTK)
# - echo "y" | sudo add-apt-repository ppa:zoogie/sdl2-snapshots
# - sudo apt-get update
# - sudo apt-get install -qq libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libsndfile1-dev libopenal-dev # doxygen graphviz
# Virtual X11 framebuffer:
#
# See also: http://afitnerd.com/2011/09/06/headless-browser-testing-on-mac/
# - export DISPLAY=:99.0
# - ls /usr/X11/bin/Xvfb
# - sudo Xvfb :99 -ac -screen 0 1024x768x24 -extension GLX &
# - sh -e /etc/init.d/xvfb start
# - sh -e /etc/init.d/xvfb.sh start
# - /usr/bin/Xvfb :99 -ac -screen 0 1024x768x32
# - xvfb-run -- :99 -ac -screen 0 1024x768x32
# - /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1024x768x32
- brew update
# - brew install cmake
# FIXME: It might be best if we packaged the freetype2 libs for libRocket
# ourselves?
- brew install freetype
# NOM_DEPS_URL and NOM_OSX_SDK_URL has been set by our repository settings
- wget -O /tmp/deps.tar.gz $NOM_DEPS_URL
# NOTE: Ensure that nomlib builds against the latest OS X SDK instead of the
# minimum deployment version in the mean time -- until I get around to
# cleaning up this script and building for both the minimum and the latest
# SDKs...
# - wget -O /tmp/osx10.7.sdk.tar.gz $NOM_OSX_SDK_URL
before_script:
- tar -xzf /tmp/deps.tar.gz -C third-party
# - sudo mkdir -p '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs'
# - sudo tar -xzf /tmp/osx10.7.sdk.tar.gz -C /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
- mkdir -p build && cd build
- cmake -GXcode -DDEBUG=on -DDEBUG_ASSERT=on -DEXAMPLES=on -DNOM_BUILD_TESTS=on -DCMAKE_OSX_DEPLOYMENT_TARGET=10.7 -DCMAKE_INSTALL_PREFIX=~/Library/Frameworks ..
script:
- xcodebuild build
- xcodebuild -target install
# - xcodebuild -target uninstall
# Broken:
# - examples/Debug/device_info
# - xcodebuild -target RUN_TESTS
# whitelist
# branches:
# only:
# - feature/travis-ci
# - feature/GUI-librocket
# - dev
# - master
matrix:
allow_failures:
- os: linux
notifications:
email: true