-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy path.travis.yml
54 lines (46 loc) · 946 Bytes
/
.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
language: cpp
compiler:
- clang
- gcc
env:
global:
- LUAROCKS_VER=2.2.2
- LUA_VER=5.1.5
- COMPILE_LUA=yes # no allows to use Lua installed from packages
# matrix:
# include:
# - compiler: gcc
# env: COMPILE_LUA=yes
sudo: false
addons:
apt:
packages:
# It is still 5.1.4 ...
#- lua5.1
#- liblua5.1-0-dev
- libboost-dev
- libboost-system-dev
- libboost-date-time-dev
- libboost-thread-dev
before_install:
- export LUA_SHORTV="$(echo $LUA_VER | cut -c 1-3)"
- mkdir -p "$HOME/build_deps"
- source ci/travis/set_env.sh
- ci/travis/install_lua.sh
- ci/travis/install_luarocks.sh
- eval `luarocks path`
#
# Report versions
- lua -v
- luarocks --version
#
# install dependencies
- luarocks install lunit
#
install:
- ci/travis/build.sh
- export PATH=$PATH:${TRAVIS_BUILD_DIR}/build
- luanode -v
script:
- cd $TRAVIS_BUILD_DIR/test
- ./run.sh