Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding travis build

  • Loading branch information...
commit 8761f3b39cdd44409a5f7b49ae79415716a9bac4 1 parent 79a0e78
@drahosp drahosp authored
Showing with 50 additions and 0 deletions.
  1. +50 −0 .travis.yml
View
50 .travis.yml
@@ -0,0 +1,50 @@
+#
+# 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:
+ - 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
+
+# Use LuaDist to deploy the module
+script:
+ - $LUADIST _test install $LUA $MODULE-scm $CMAKE -verbose=true -test=true
+
+# Execute additional tests or commands
+#after_script:
+# - [run additional test commans]
+
+# Only watch the master branch
+branches:
+ only:
+ - master
+
+# Notify the LuaDist Dev group if needed
+notifications:
+ recipients:
+ - luadist-dev@googlegroups.com
+ email:
+ on_success: change
+ on_failure: always
Please sign in to comment.
Something went wrong with that request. Please try again.