summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: b7fd0f0b46c49939fa4ca4359a5e5c6062d3e297 (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
#
# LuaDist Travis-CI Hook
#

# Since CMake is not directly supported we use erlang VMs
language: erlang

# 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 -verbose=true -test=true

# Execute additional tests or commands
after_script:
  - ./_test/bin/lua -e "print (_VERSION)"

# 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