summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Drahoš <drahosp@gmail.com>2012-04-03 01:14:25 +0200
committerPeter Drahoš <drahosp@gmail.com>2012-04-03 01:14:25 +0200
commit09ebcf0eda90563876501ea9b77bca40121ecfe4 (patch)
treefa064db1b456ebd398ae9b914df52a9c664c08c2
parent39c8361d82a8c6b6e3e65cba8a1a6a7e6a5bd76c (diff)
downloadlua-09ebcf0eda90563876501ea9b77bca40121ecfe4.tar.gz
New Travis build
-rw-r--r--.travis.yml52
1 files changed, 46 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index b91301d..4811006 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,10 +1,50 @@
-language: erlang # Not really ...
+#
+# LuaDist Travis-CI Hook
+#
+# Since CMake is not directly supported we use erlang VMs
+language: erlang
+
+# Try using multiple Lua Implementations
+env:
+ - LUA="" # Use automatic dependencies
+ - LUA="luajit" # Try with LuaJIT
+# - CMAKE="-DCMAKE_VARIABLE=value"
+# - LUA="lua-5.1.5"
+
+# Allow luajit to fail
+matrix:
+ allow_failures:
+ - env: LUA="luajit"
+
+# We need CMake and LuaDist
install:
- - sudo apt-get install cmake
+ - export MODULE=`basename $PWD`
+ - sudo apt-get install cmake
+ - git clone git://github.com/LuaDist/bootstrap.git _luadist
+ - cd _luadist
+ - git submodule update --init
+ - ./bootstrap
+ - export LUADIST=$PWD/_install/bin/luadist
+ - cd $HOME
+# Use LuaDist to deploy the module
script:
- - mkdir _build && cd _build
- - cmake .. -DCMAKE_INSTALL_PREFIX=../_install
- - cmake --build . --target install
- - ctest .
+ - $LUADIST _test install $LUA $MODULE-scm $CMAKE -verbose=true -debug=true -test=true
+
+# Execute additional tests or commands
+#after_script:
+# - [run additional test commans]
+
+# Only watch the master branch
+branches:
+ only:
+ - lua-5.1
+
+# Notify the LuaDist Dev group if needed
+notifications:
+ recipients:
+ - luadist-dev@googlegroups.com
+ email:
+ on_success: change
+ on_failure: always