mirror of
https://github.com/msva/lua-htmlparser.git
synced 2024-11-04 23:34:20 +00:00
45 lines
1.0 KiB
YAML
45 lines
1.0 KiB
YAML
language: c
|
|
|
|
sudo: false
|
|
|
|
env:
|
|
global:
|
|
- LUAROCKS=3.1.3
|
|
matrix:
|
|
- LUA=lua5.1
|
|
- LUA=lua5.2
|
|
- LUA=lua5.3
|
|
# - LUA=lua5.4
|
|
- LUA=luajit # latest stable version
|
|
- LUA=luajit2.0 # current head of 2.0 branch
|
|
- LUA=luajit2.1 # current head of 2.1 branch
|
|
|
|
#branches:
|
|
# only:
|
|
# - master
|
|
|
|
before_install:
|
|
- source .travis/setenv_lua.sh
|
|
- pip install --user cpp-coveralls
|
|
- luarocks install Lua-cURL --server=https://luarocks.org/dev
|
|
- luarocks install luacov-coveralls --server=https://luarocks.org/dev
|
|
- luarocks install lunitx
|
|
|
|
install:
|
|
- luarocks make rockspecs/htmlparser-scm-0.rockspec CFLAGS="-O2 -fPIC -ftest-coverage -fprofile-arcs" LIBFLAG="-shared --coverage"
|
|
|
|
script:
|
|
- cd tst
|
|
# - lua -e "print(require'cURL'.version())"
|
|
# - lua -l tst.init -e "" # Lua5.3 fails this way
|
|
- lunit.sh init.lua
|
|
|
|
after_success:
|
|
- coveralls -b .. -r .. -i ./src --dump c.report.json
|
|
- luacov-coveralls -j c.report.json -v
|
|
|
|
notifications:
|
|
email:
|
|
on_success: change
|
|
on_failure: always
|