Skip to content

Commit

Permalink
Updated travis hook
Browse files Browse the repository at this point in the history
  • Loading branch information
drahosp committed Aug 20, 2012
1 parent 6c66e02 commit 8cd5e17
Showing 1 changed file with 28 additions and 15 deletions.
43 changes: 28 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8cd5e17

Please sign in to comment.