-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
132 lines (95 loc) · 3.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
sudo: required
# sudo is required by the clang_3_7 install script
language: cpp
cache:
directories:
- ${TRAVIS_BUILD_DIR}/deps
# TODO: Find a good way to install recent version of clang
matrix:
include:
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
- gdb
env: COMPILER=g++-4.9
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- gdb
env: COMPILER=g++-5
before_install:
- if [[ "${COMPILER}" != "" ]]; then export CXX=${COMPILER}; fi
install:
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
- BOOST_VERSION=1.60.0
- if [[ ! -d ${DEPS_DIR}/boost ]]; then
mkdir -p ${DEPS_DIR} && cd ${DEPS_DIR};
if [[ "${BOOST_VERSION}" == "default" ]]; then BOOST_VERSION=1.60.0; fi;
if [[ "${BOOST_VERSION}" == "1.60.0" ]]; then BOOST_URL="http://sourceforge.net/projects/boost/files/boost/1.60.0/boost_1_60_0.tar.gz"; fi;
if [[ "${BOOST_VERSION}" == "1.61.0" ]]; then BOOST_URL="http://sourceforge.net/projects/boost/files/boost/1.61.0/boost_1_61_0.tar.gz"; fi;
if [[ "${BOOST_URL}" != "" ]]; then mkdir boost && travis_retry wget -O - ${BOOST_URL} | tar --strip-components=1 -xz -C boost; fi;
cd boost/tools/build && ./bootstrap.sh && ./b2 install --prefix=${DEPS_DIR}/b2;
fi
- export PATH=${DEPS_DIR}/b2/bin:${PATH}
- export BOOST_ROOT=${DEPS_DIR}/boost
- cd ${TRAVIS_BUILD_DIR}
- pwd
- ls
script:
- $CC --version
- $CXX --version
- |-
JAM="using ${CC} : : ${CXX} ;"
- cd test
- echo "${JAM}" > project-config.jam
# - if [[ "${NO_STATIC_ASSERTS}" != "" ]]; then export FLAGS="--toolset=${CC} --no-static-asserts"; else export FLAGS="--toolset=${CC}"; fi
# TODO: How can get a more recent standard library on trusty?
- export FLAGS="--toolset=${CC} --no-static-asserts";
- export LUA_ROOT=lua-5.3.1
- echo ${LUA_ROOT}
- ./test.sh ${FLAGS}
- ./lua-5.3.1-tests.sh
- ./test.sh ${FLAGS} --with-lua-32bit
- ./lua-5.3.1-tests.sh
- export LUA_ROOT=lua-5.3.3
- echo ${LUA_ROOT}
- ./test.sh ${FLAGS}
- ./test.sh ${FLAGS} --with-lua-32bit
- ./test.sh ${FLAGS} --with-lua-as-cpp
- ./lua-5.3.3-tests.sh
- ./test.sh ${FLAGS} --with-lua-as-cpp --with-lua-32bit
- ./test.sh ${FLAGS} release
- ./test.sh ${FLAGS} release --with-lua-32bit
- ./test.sh ${FLAGS} release --with-lua-as-cpp
- ./lua-5.3.3-tests.sh
- export LUA_ROOT=eris-1.1.0-5.3
- echo ${LUA_ROOT}
- ./test.sh ${FLAGS}
- ./eris-internal-tests.sh
- ./test.sh ${FLAGS} --with-lua32bit
- ./eris-internal-tests.sh
- ./test.sh ${FLAGS} --with-lua-as-cpp
- ./eris-internal-tests.sh
- ./test.sh ${FLAGS} --with-lua-32bit --with-lua-as-cpp
- ./test.sh ${FLAGS} release --with-lua-as-cpp --with-lua32bit
- ./test.sh ${FLAGS} release
- export LUA_ROOT=eris-1.1.2-lua5.3
- echo ${LUA_ROOT}
- ./test.sh ${FLAGS}
# - ./eris-internal-tests.sh
- ./test.sh ${FLAGS} --with-lua-32bit
# TODO: Figure out what is wrong :(
# - ./eris-internal-tests.sh || true
- ./test.sh ${FLAGS} --with-lua-as-cpp
# - ./eris-internal-tests.sh
- ./test.sh ${FLAGS} --with-lua-32bit --with-lua-as-cpp
# - ./eris-internal-tests.sh || true
- ./test.sh ${FLAGS} release --with-lua-32bit --with-lua-as-cpp