2015-10-31 14:50:21 +00:00
|
|
|
language: python
|
|
|
|
sudo: false
|
2013-01-02 00:51:09 +00:00
|
|
|
|
|
|
|
env:
|
2015-10-31 14:50:21 +00:00
|
|
|
- LUA="lua=5.1"
|
|
|
|
- LUA="lua=5.2"
|
|
|
|
- LUA="lua=5.3"
|
|
|
|
- LUA="luajit=2.0"
|
|
|
|
- LUA="luajit=2.1"
|
2013-12-05 00:15:08 +00:00
|
|
|
|
2013-12-06 20:28:31 +00:00
|
|
|
before_install:
|
2015-10-31 14:50:21 +00:00
|
|
|
- pip install hererocks
|
2015-12-26 12:27:36 +00:00
|
|
|
- hererocks lua_install -r^ --$LUA
|
|
|
|
- export PATH=$PATH:$PWD/lua_install/bin # Add directory with all installed binaries to PATH
|
2015-12-26 12:11:58 +00:00
|
|
|
|
|
|
|
install:
|
2016-01-02 08:33:34 +00:00
|
|
|
- luarocks install luacheck
|
2015-10-31 14:50:21 +00:00
|
|
|
- luarocks install busted
|
2015-12-26 12:04:33 +00:00
|
|
|
- luarocks install luacov
|
|
|
|
- luarocks install luacov-coveralls
|
2013-12-06 20:28:31 +00:00
|
|
|
|
2015-10-31 14:50:21 +00:00
|
|
|
script:
|
2016-01-02 08:57:00 +00:00
|
|
|
- luacheck --no-unused-args --std max+busted *.lua spec
|
2015-12-26 12:27:36 +00:00
|
|
|
- busted --verbose --coverage
|
2015-12-26 12:04:33 +00:00
|
|
|
|
|
|
|
after_success:
|
2015-12-26 12:27:36 +00:00
|
|
|
- luacov-coveralls --exclude $TRAVIS_BUILD_DIR/lua_install
|
2015-10-04 19:52:46 +00:00
|
|
|
|
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- gh-pages
|
2013-12-06 20:28:31 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|