2015-11-13 21:11:17 +00:00
|
|
|
language: python
|
|
|
|
sudo: false
|
2013-01-02 00:50:54 +00:00
|
|
|
|
|
|
|
env:
|
2015-11-13 21:11:17 +00:00
|
|
|
- LUA="lua=5.1"
|
|
|
|
- LUA="lua=5.2"
|
|
|
|
- LUA="lua=5.3"
|
|
|
|
- LUA="luajit=2.0"
|
|
|
|
- LUA="luajit=2.1"
|
2014-09-13 12:44:56 +00:00
|
|
|
|
|
|
|
before_install:
|
2015-11-13 21:11:17 +00:00
|
|
|
- pip install hererocks
|
2016-03-06 15:08:55 +00:00
|
|
|
- hererocks lua_install -r^ --$LUA
|
|
|
|
- export PATH=$PATH:$PWD/lua_install/bin # Add directory with all installed binaries to PATH
|
|
|
|
|
|
|
|
install:
|
|
|
|
- luarocks install luacheck
|
2015-11-13 21:11:17 +00:00
|
|
|
- luarocks install busted
|
2016-03-06 15:08:55 +00:00
|
|
|
- luarocks install luacov
|
|
|
|
- luarocks install luacov-coveralls
|
2014-09-13 12:44:56 +00:00
|
|
|
|
|
|
|
script:
|
2016-03-06 15:08:55 +00:00
|
|
|
- luacheck --std max+busted *.lua spec
|
|
|
|
- busted --verbose --coverage
|
|
|
|
|
|
|
|
after_success:
|
|
|
|
- luacov-coveralls --exclude $TRAVIS_BUILD_DIR/lua_install
|
2015-11-13 21:11:17 +00:00
|
|
|
|
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- gh-pages
|
2013-01-02 00:50:54 +00:00
|
|
|
|
2014-09-13 12:44:56 +00:00
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|