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

Commit 36fb2b4

Browse files
committed
Adding travis build
1 parent e343b3d commit 36fb2b4

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.travis.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#
2+
# LuaDist Travis-CI Hook
3+
#
4+
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
21+
install:
22+
- export MODULE=`basename $PWD`
23+
- sudo apt-get install cmake >/dev/null 2>&1
24+
- git clone git://github.com/LuaDist/bootstrap.git _luadist >/dev/null 2>&1
25+
- cd _luadist
26+
- git submodule update --init >/dev/null 2>&1
27+
- ./bootstrap >/dev/null 2>&1
28+
- export LUADIST=$PWD/_install/bin/luadist
29+
- cd $HOME
30+
31+
# Use LuaDist to deploy the module
32+
script:
33+
- $LUADIST _test install $LUA $MODULE-scm $CMAKE -verbose=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+
- master
43+
44+
# Notify the LuaDist Dev group if needed
45+
notifications:
46+
recipients:
47+
- luadist-dev@googlegroups.com
48+
email:
49+
on_success: change
50+
on_failure: always

0 commit comments

Comments
 (0)