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

Commit 97288c0

Browse files
committed
Updated travis hook
1 parent bffe6c8 commit 97288c0

File tree

1 file changed

+23
-22
lines changed

1 file changed

+23
-22
lines changed

.travis.yml

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,40 @@
22
# LuaDist Travis-CI Hook
33
#
44

5-
# Since CMake is not directly supported we use erlang VMs
6-
language: erlang
7-
5+
# We assume C build environments
6+
language: C
7+
88
# Try using multiple Lua Implementations
99
env:
10-
- LUA="" # Use automatic dependencies
11-
- LUA="luajit" # Try with LuaJIT
12-
# - CMAKE="-DCMAKE_VARIABLE=value"
13-
# - LUA="lua-5.1.5"
10+
- TOOL="" # Use native compiler (GCC usually)
11+
- COMPILER="clang" # Use clang
12+
- TOOL="i686-w64-mingw32" # 32bit MinGW
13+
- TOOL="x86_64-w64-mingw32" # 64bit MinGW
14+
- TOOL="arm-linux-gnueabihf" # ARM hard-float (hf), linux
1415

15-
# Allow luajit to fail
16+
# Crosscompile builds may fail
1617
matrix:
1718
allow_failures:
18-
- env: LUA="luajit"
19-
20-
# We need CMake and LuaDist
19+
- env: TOOL="i686-w64-mingw32"
20+
- env: TOOL="x86_64-w64-mingw32"
21+
- env: TOOL="arm-linux-gnueabihf"
22+
23+
# Install dependencies
2124
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
25+
- git clone git://github.com/LuaDist/_util.git ~/_util
26+
- ~/_util/travis install
27+
28+
# Bootstap
29+
before_script:
30+
- ~/_util/travis bootstrap
3031

31-
# Use LuaDist to deploy the module
32+
# Build the module
3233
script:
33-
- $LUADIST _test install $LUA $MODULE-scm $CMAKE -verbose=true -test=true
34+
- ~/_util/travis build
3435

3536
# Execute additional tests or commands
3637
#after_script:
37-
# - [run additional test commans]
38+
# - ~/_util/travis test
3839

3940
# Only watch the master branch
4041
branches:

0 commit comments

Comments
 (0)