diff options
author | Peter Drahoš <drahosp@gmail.com> | 2012-08-20 12:07:27 +0200 |
---|---|---|
committer | Peter Drahoš <drahosp@gmail.com> | 2012-08-20 12:07:27 +0200 |
commit | 8cd5e176eb15fefe74a003b8f98999a172d94075 (patch) | |
tree | 306644883bc73f0bd709f568ee0efeac36951340 | |
parent | 6c66e02a58dcea78dde4a4ad5ddb08247f28efc3 (diff) | |
download | lua-8cd5e176eb15fefe74a003b8f98999a172d94075.tar.gz |
Updated travis hook
-rw-r--r-- | .travis.yml | 43 |
1 files changed, 28 insertions, 15 deletions
diff --git a/.travis.yml b/.travis.yml index b7fd0f0..049d304 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,27 +2,40 @@ # LuaDist Travis-CI Hook # -# Since CMake is not directly supported we use erlang VMs -language: erlang +# We assume C build environments +language: C + +# Try using multiple Lua Implementations +env: + - TOOL="" # Use native compiler (GCC usually) + - COMPILER="clang" # Use clang + - TOOL="i686-w64-mingw32" # 32bit MinGW + - TOOL="x86_64-w64-mingw32" # 64bit MinGW + - TOOL="arm-linux-gnueabihf" # ARM hard-float (hf), linux -# We need CMake and LuaDist +# Crosscompile builds may fail +matrix: + allow_failures: + - env: TOOL="i686-w64-mingw32" + - env: TOOL="x86_64-w64-mingw32" + - env: TOOL="arm-linux-gnueabihf" + +# Install dependencies install: - - export MODULE=`basename $PWD` - - sudo apt-get install cmake >/dev/null 2>&1 - - git clone git://github.com/LuaDist/bootstrap.git _luadist >/dev/null 2>&1 - - cd _luadist - - git submodule update --init >/dev/null 2>&1 - - ./bootstrap >/dev/null 2>&1 - - export LUADIST=$PWD/_install/bin/luadist - - cd $HOME + - git clone git://github.com/LuaDist/_util.git ~/_util + - ~/_util/travis install -# Use LuaDist to deploy the module +# Bootstap +before_script: + - ~/_util/travis bootstrap + +# Build the module script: - - $LUADIST _test install $LUA $MODULE-scm -verbose=true -test=true + - ~/_util/travis build # Execute additional tests or commands -after_script: - - ./_test/bin/lua -e "print (_VERSION)" +#after_script: +# - ~/_util/travis test # Only watch the master branch branches: |