Skip to content
This repository was archived by the owner on Nov 20, 2020. It is now read-only.

Commit 09ebcf0

Browse files
committed
New Travis build
1 parent 39c8361 commit 09ebcf0

File tree

1 file changed

+46
-6
lines changed

1 file changed

+46
-6
lines changed

.travis.yml

Lines changed: 46 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,50 @@
1-
language: erlang # Not really ...
1+
#
2+
# LuaDist Travis-CI Hook
3+
#
24

5+
# Since CMake is not directly supported we use erlang VMs
6+
language: erlang
7+
8+
# Try using multiple Lua Implementations
9+
env:
10+
- LUA="" # Use automatic dependencies
11+
- LUA="luajit" # Try with LuaJIT
12+
# - CMAKE="-DCMAKE_VARIABLE=value"
13+
# - LUA="lua-5.1.5"
14+
15+
# Allow luajit to fail
16+
matrix:
17+
allow_failures:
18+
- env: LUA="luajit"
19+
20+
# We need CMake and LuaDist
321
install:
4-
- sudo apt-get install cmake
22+
- export MODULE=`basename $PWD`
23+
- sudo apt-get install cmake
24+
- git clone git://github.com/LuaDist/bootstrap.git _luadist
25+
- cd _luadist
26+
- git submodule update --init
27+
- ./bootstrap
28+
- export LUADIST=$PWD/_install/bin/luadist
29+
- cd $HOME
530

31+
# Use LuaDist to deploy the module
632
script:
7-
- mkdir _build && cd _build
8-
- cmake .. -DCMAKE_INSTALL_PREFIX=../_install
9-
- cmake --build . --target install
10-
- ctest .
33+
- $LUADIST _test install $LUA $MODULE-scm $CMAKE -verbose=true -debug=true -test=true
34+
35+
# Execute additional tests or commands
36+
#after_script:
37+
# - [run additional test commans]
38+
39+
# Only watch the master branch
40+
branches:
41+
only:
42+
- lua-5.1
43+
44+
# Notify the LuaDist Dev group if needed
45+
notifications:
46+
recipients:
47+
48+
email:
49+
on_success: change
50+
on_failure: always

0 commit comments

Comments
 (0)