Skip to content

Commit abd2238

Browse files
committed
Add livecode submodule and travis config
1 parent 0c0e2df commit abd2238

File tree

3 files changed

+101
-0
lines changed

3 files changed

+101
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "livecode"]
2+
path = livecode
3+
url = https://github.com/livecode/livecode

.travis.yml

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
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+
export MODE=debug
75+
76+
make -C livecode all-${BUILD_PLATFORM} &&
77+
${CHECK_COMMAND} make -C tests lcs-check
78+
79+
addons:
80+
# Packages needed for building LiveCode
81+
apt:
82+
packages:
83+
- gawk
84+
- libx11-dev
85+
- libxext-dev
86+
- libxrender-dev
87+
- libxft-dev
88+
- libxinerama-dev
89+
- libxv-dev
90+
- libxcursor-dev
91+
- libfreetype6-dev
92+
- libgtk2.0-dev
93+
- libpopt-dev
94+
- libesd0-dev
95+
- liblcms2-dev
96+
- xvfb
97+

livecode

Submodule livecode added at 4b29ad3

0 commit comments

Comments
 (0)