summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Drahoš <drahosp@gmail.com>2012-08-20 12:06:38 +0200
committerPeter Drahoš <drahosp@gmail.com>2012-08-20 12:06:38 +0200
commit9c4196cec3c52c42a428d37ac4b5a410075f28ff (patch)
tree638253cc19f2d2c3ea087a7c67df12e342348b18
parentf96ee8dffd2e615ac9b63bec4e57d8a824c9f034 (diff)
downloadlua-9c4196cec3c52c42a428d37ac4b5a410075f28ff.tar.gz
Updated travis hook
-rw-r--r--.travis.yml45
1 files changed, 29 insertions, 16 deletions
diff --git a/.travis.yml b/.travis.yml
index 10d2477..049d304 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,32 +2,45 @@
# 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~=5.1" -verbose=true -test=true
+ - ~/_util/travis build
# Execute additional tests or commands
#after_script:
-# - [run additional test commans]
+# - ~/_util/travis test
# Only watch the master branch
branches:
only:
- - lua-5.1
+ - master
# Notify the LuaDist Dev group if needed
notifications:
@@ -35,4 +48,4 @@ notifications:
- luadist-dev@googlegroups.com
email:
on_success: change
- on_failure: always
+ on_failure: always \ No newline at end of file