2016-03-15 01:12:45 +00:00
|
|
|
language: python
|
|
|
|
sudo: false
|
|
|
|
|
|
|
|
env:
|
|
|
|
- LUA="lua=5.1"
|
|
|
|
- LUA="lua=5.2"
|
|
|
|
- LUA="lua=5.3"
|
2020-10-29 02:46:04 +00:00
|
|
|
- LUA="lua=5.4"
|
2016-03-15 01:12:45 +00:00
|
|
|
- LUA="luajit=2.0"
|
|
|
|
- LUA="luajit=2.1"
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- pip install hererocks
|
|
|
|
- hererocks lua_install -r^ --$LUA
|
|
|
|
- export PATH=$PATH:$PWD/lua_install/bin # Add directory with all installed binaries to PATH
|
|
|
|
|
|
|
|
install:
|
|
|
|
- luarocks install busted
|
2018-05-27 01:18:08 +00:00
|
|
|
- luarocks install lua-cjson2 # the official repo doesn't run under lua 5.2/5.3 anymore...
|
2016-03-15 01:12:45 +00:00
|
|
|
- luarocks install luacov
|
|
|
|
- luarocks install luacov-coveralls
|
|
|
|
|
|
|
|
script:
|
|
|
|
- busted --verbose --coverage
|
|
|
|
|
|
|
|
after_success:
|
|
|
|
- luacov-coveralls --exclude $TRAVIS_BUILD_DIR/lua_install
|
|
|
|
|
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- gh-pages
|
|
|
|
|