File tree Expand file tree Collapse file tree 3 files changed +100
-0
lines changed Expand file tree Collapse file tree 3 files changed +100
-0
lines changed Original file line number Diff line number Diff line change 1+ [submodule "livecode "]
2+ path = livecode
3+ url = https://github.com/livecode/livecode
Original file line number Diff line number Diff line change 1+ sudo : required
2+ dist : trusty
3+
4+ # Build on both Linux and OSX
5+ os :
6+ - linux
7+ - osx
8+
9+ # Use a Travis image containing an Xcode we support
10+ # This prevents surprise upgrades!
11+ osx_image : xcode7.3
12+
13+ language : c++
14+
15+ compiler :
16+ - clang
17+ - gcc
18+
19+ # Environment variables
20+ env :
21+ global :
22+ - CXX_STD : " c++11"
23+
24+ jdk :
25+ - openjdk8
26+
27+ # Build using clang on mac and gcc on linux
28+ matrix :
29+ exclude :
30+ - os : osx
31+ compiler : gcc
32+ - os : linux
33+ compiler : clang
34+
35+ # Install any required tools
36+ before_install :
37+ - |
38+ if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then
39+ rvm --default use 2.2.1
40+ gem install xcpretty
41+ fi
42+
43+ - |
44+ if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then
45+ sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
46+ sudo apt-get -qq update
47+ sudo apt-get -qq install g++-4.9
48+ fi
49+
50+ # Set up the source tree by fetching correct prebuilt objects
51+ install :
52+ - if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then (cd livecode/prebuilt && ./fetch-libraries.sh linux) ; fi
53+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then (cd livecode/prebuilt && ./fetch-libraries.sh mac) ; fi
54+
55+ # Build the default target for LiveCode
56+ script : |
57+ case "${TRAVIS_OS_NAME}" in
58+ linux)
59+ BUILD_PLATFORM=linux
60+ CHECK_COMMAND=xvfb-run
61+ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"${JAVA_HOME}/jre/lib/amd64/server"
62+ export CXX="g++-4.9"
63+ export CC="gcc-4.9"
64+ ;;
65+ osx)
66+ BUILD_PLATFORM=mac
67+ CHECK_COMMAND=
68+ export XCODE_TARGET_SDK=macosx10.11
69+ export XCODEBUILD="set -o pipefail && xcodebuild"
70+ export XCODEBUILD_FILTER="| xcpretty"
71+ export JAVA_HOME=$(/usr/libexec/java_home)
72+ ;;
73+ esac
74+
75+ make -C livecode all-${BUILD_PLATFORM} &&
76+ ${CHECK_COMMAND} MODE=debug make -C tests lcs-check
77+
78+ addons :
79+ # Packages needed for building LiveCode
80+ apt :
81+ packages :
82+ - gawk
83+ - libx11-dev
84+ - libxext-dev
85+ - libxrender-dev
86+ - libxft-dev
87+ - libxinerama-dev
88+ - libxv-dev
89+ - libxcursor-dev
90+ - libfreetype6-dev
91+ - libgtk2.0-dev
92+ - libpopt-dev
93+ - libesd0-dev
94+ - liblcms2-dev
95+ - xvfb
96+
You can’t perform that action at this time.
0 commit comments