Lua-cURLv3/.travis.yml

46 lines
978 B
YAML
Raw Normal View History

2014-08-26 00:14:01 -07:00
language: c
2015-05-05 01:23:43 -07:00
sudo: false
2014-08-26 00:14:01 -07:00
env:
global:
2015-05-05 01:23:43 -07:00
- LUAROCKS=2.2.2
2014-08-26 00:14:01 -07:00
matrix:
- LUA=lua5.1
- LUA=lua5.2
2014-11-26 01:58:56 -08:00
- LUA=lua5.3
2014-08-26 00:14:01 -07:00
- LUA=luajit
branches:
only:
- master
before_install:
2015-05-05 01:23:43 -07:00
- source .travis/setenv_lua.sh
- pip install --user cpp-coveralls
- luarocks install luafilesystem --from=https://rocks.moonscript.org/dev
- luarocks install luacov-coveralls
- luarocks install lunitx
- luarocks install dkjson --deps-mode=none
2014-08-26 00:14:01 -07:00
install:
2015-05-05 01:23:43 -07:00
- luarocks make rockspecs/lua-curl-scm-0.rockspec CFLAGS="-O2 -fPIC -ftest-coverage -fprofile-arcs" LIBFLAG="-shared --coverage"
2014-08-26 00:14:01 -07:00
script:
- cd test
- lua -e "print(require 'cURL.utils'.find_ca_bundle())"
2014-09-02 04:44:00 -07:00
- lunit.sh test_easy.lua
- lunit.sh test_safe.lua
- lunit.sh test_form.lua
2014-09-04 23:26:22 -07:00
- lunit.sh test_pause02.c.lua
- lunit.sh test_curl.lua
2014-08-26 00:14:01 -07:00
after_success:
2014-09-16 02:00:54 -07:00
- coveralls -b .. -r .. --dump c.report.json
- luacov-coveralls -j c.report.json
2014-08-26 00:14:01 -07:00
notifications:
email:
on_success: change
on_failure: always