.travis.yml 1.61 KB
Newer Older
1 2
language: python
sudo: false
François Perrad's avatar
François Perrad committed
3 4

env:
5 6 7 8 9
  - LUA="lua 5.1"       COMPAT=default  CFLAGS=""
  - LUA="lua 5.2"       COMPAT=default  CFLAGS=""
  - LUA="lua 5.2"       COMPAT=none     CFLAGS=""
  - LUA="lua 5.3"       COMPAT=default  CFLAGS=""
  - LUA="lua 5.3"       COMPAT=none     CFLAGS=""
10
  - LUA="lua 5.3"       COMPAT=default  CFLAGS="-DLUA_NOCVTN2S -DLUA_NOCVTS2N"
11 12 13 14
  - LUA="lua 5.3"       COMPAT=default  CFLAGS="-DLUA_32BITS"
  - LUA="lua 5.3"       COMPAT=default  CFLAGS="-DLUA_FLOAT_TYPE=3"
  - LUA="lua 5.3"       COMPAT=default  SRC53="LUAVER=5.3" CFLAGS=""
  - LUA="lua 5.3"       COMPAT=none     SRC53="LUAVER=5.3" CFLAGS=""
15
  - LUA="lua 5.3"       COMPAT=default  SRC53="LUAVER=5.3" CFLAGS="-DLUA_NOCVTN2S -DLUA_NOCVTS2N"
16 17 18 19 20 21 22 23 24 25 26 27
  - LUA="lua 5.3"       COMPAT=default  SRC53="LUAVER=5.3" CFLAGS="-DLUA_32BITS"
  - LUA="lua 5.3"       COMPAT=default  SRC53="LUAVER=5.3" CFLAGS="-DLUA_FLOAT_TYPE=3"
  - LUA="luajit 2.0"    COMPAT=none     CFLAGS=""
  - LUA="luajit 2.0"    COMPAT=all      CFLAGS=""
  - LUA="luajit 2.1"    COMPAT=none     CFLAGS=""
  - LUA="luajit 2.1"    COMPAT=all      CFLAGS=""

before_install:
  - pip install hererocks
  - hererocks HERE --$LUA --compat $COMPAT --cflags="$CFLAGS" --no-readline --luarocks latest --verbose
  - hererocks HERE --show
  - source HERE/bin/activate
François Perrad's avatar
François Perrad committed
28 29

install:
30 31 32 33 34 35
  - luarocks install luacov-coveralls
  - luarocks install luacheck
  - luarocks install lua-testmore
  - luarocks install lua-coat
  - luarocks install lbc
  - luarocks install lmathx # required by Lua-5.3-strict
François Perrad's avatar
François Perrad committed
36 37

script:
François Perrad's avatar
François Perrad committed
38
  - make luacheck
39 40 41 42
  - make test $SRC53

after_success:
  - make coveralls $SRC53
François Perrad's avatar
François Perrad committed
43 44 45 46

branches:
  only:
    - master
François Perrad's avatar
François Perrad committed
47