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

Commit 9c4196c

Browse files
committed
Updated travis hook
1 parent f96ee8d commit 9c4196c

File tree

1 file changed

+29
-16
lines changed

1 file changed

+29
-16
lines changed

.travis.yml

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,50 @@
22
# LuaDist Travis-CI Hook
33
#
44

5-
# Since CMake is not directly supported we use erlang VMs
6-
language: erlang
5+
# We assume C build environments
6+
language: C
7+
8+
# Try using multiple Lua Implementations
9+
env:
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
715

8-
# We need CMake and LuaDist
16+
# Crosscompile builds may fail
17+
matrix:
18+
allow_failures:
19+
- env: TOOL="i686-w64-mingw32"
20+
- env: TOOL="x86_64-w64-mingw32"
21+
- env: TOOL="arm-linux-gnueabihf"
22+
23+
# Install dependencies
924
install:
10-
- export MODULE=`basename $PWD`
11-
- sudo apt-get install cmake >/dev/null 2>&1
12-
- git clone git://github.com/LuaDist/bootstrap.git _luadist >/dev/null 2>&1
13-
- cd _luadist
14-
- git submodule update --init >/dev/null 2>&1
15-
- ./bootstrap >/dev/null 2>&1
16-
- export LUADIST=$PWD/_install/bin/luadist
17-
- cd $HOME
25+
- git clone git://github.com/LuaDist/_util.git ~/_util
26+
- ~/_util/travis install
1827

19-
# Use LuaDist to deploy the module
28+
# Bootstap
29+
before_script:
30+
- ~/_util/travis bootstrap
31+
32+
# Build the module
2033
script:
21-
- $LUADIST _test install "lua~=5.1" -verbose=true -test=true
34+
- ~/_util/travis build
2235

2336
# Execute additional tests or commands
2437
#after_script:
25-
# - [run additional test commans]
38+
# - ~/_util/travis test
2639

2740
# Only watch the master branch
2841
branches:
2942
only:
30-
- lua-5.1
43+
- master
3144

3245
# Notify the LuaDist Dev group if needed
3346
notifications:
3447
recipients:
3548
3649
email:
3750
on_success: change
38-
on_failure: always
51+
on_failure: always

0 commit comments

Comments
 (0)