summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 4811006b3beae84d03a029cf90b913bf81f1ad7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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
  - 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:
    - lua-5.1

# Notify the LuaDist Dev group if needed
notifications:
  recipients:
    - luadist-dev@googlegroups.com
  email:
    on_success: change
    on_failure: always