|
2 | 2 | # LuaDist Travis-CI Hook
|
3 | 3 | #
|
4 | 4 |
|
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 | + |
8 | 8 | # Try using multiple Lua Implementations
|
9 | 9 | 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 |
14 | 15 |
|
15 |
| -# Allow luajit to fail |
| 16 | +# Crosscompile builds may fail |
16 | 17 | matrix:
|
17 | 18 | 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 |
21 | 24 | 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 |
30 | 31 |
|
31 |
| -# Use LuaDist to deploy the module |
| 32 | +# Build the module |
32 | 33 | script:
|
33 |
| - - $LUADIST _test install $LUA $MODULE-scm $CMAKE -verbose=true -test=true |
| 34 | + - ~/_util/travis build |
34 | 35 |
|
35 | 36 | # Execute additional tests or commands
|
36 | 37 | #after_script:
|
37 |
| -# - [run additional test commans] |
| 38 | +# - ~/_util/travis test |
38 | 39 |
|
39 | 40 | # Only watch the master branch
|
40 | 41 | branches:
|
|
0 commit comments