2
2
# LuaDist Travis-CI Hook
3
3
#
4
4
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
7
15
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
9
24
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
18
27
19
- # Use LuaDist to deploy the module
28
+ # Bootstap
29
+ before_script :
30
+ - ~/_util/travis bootstrap
31
+
32
+ # Build the module
20
33
script :
21
- - $LUADIST _test install "lua~=5.1" -verbose=true -test=true
34
+ - ~/_util/travis build
22
35
23
36
# Execute additional tests or commands
24
37
# after_script:
25
- # - [run additional test commans]
38
+ # - ~/_util/travis test
26
39
27
40
# Only watch the master branch
28
41
branches :
29
42
only :
30
- - lua-5.1
43
+ - master
31
44
32
45
# Notify the LuaDist Dev group if needed
33
46
notifications :
34
47
recipients :
35
48
36
49
email :
37
50
on_success : change
38
- on_failure : always
51
+ on_failure : always
0 commit comments