added travis; moved rockspecs; tests and docs modified

This commit is contained in:
Vadim A. Misbakh-Soloviov
2017-04-09 13:15:06 +07:00
parent 06da2e960e
commit a04ab7d9cd
11 changed files with 252 additions and 6 deletions

42
.travis.yml Normal file
View File

@@ -0,0 +1,42 @@
language: c
sudo: false
env:
global:
- LUAROCKS=2.3.0
matrix:
- LUA=lua5.1
- LUA=lua5.2
- LUA=lua5.3
- LUA=luajit # latest stable version (2.0.4)
- 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())"
- 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