Created
April 1, 2012 19:45
-
-
Save drahosp/2278079 to your computer and use it in GitHub Desktop.
Travis-CI Template for LuaDist projects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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 | |
- 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: | |
- $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: | |
- master | |
# Notify the LuaDist Dev group if needed | |
notifications: | |
recipients: | |
- [email protected] | |
email: | |
on_success: change | |
on_failure: always |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment