Lua-cURLv3/.travis.yml

60 lines
1.4 KiB
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
2016-04-07 07:21:29 -07:00
matrix:
include:
- compiler: ": Lua51"
env: LUA="lua 5.1"
- compiler: ": Lua52"
env: LUA="lua 5.2"
- compiler: ": Lua53"
env: LUA="lua 5.3"
- compiler: ": LuaJIT20"
env: LUA="luajit 2.0"
- compiler: ": LuaJIT21"
env: LUA="luajit 2.1"
cache:
directories:
- here
- $HOME/.cache/pip
2014-08-26 00:14:01 -07:00
branches:
only:
- master
before_install:
2016-04-07 07:21:29 -07:00
- export CC=gcc
2015-05-05 01:23:43 -07:00
- pip install --user cpp-coveralls
2016-04-07 07:21:29 -07:00
- pip install --user hererocks
- hererocks here -r^ --$LUA
- export PATH=$PATH:$PWD/here/bin
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
2016-04-07 07:21:29 -07:00
before_script:
- luarocks show luacov-coveralls || luarocks install luacov-coveralls
- luarocks show lunitx || luarocks install lunitx
- luarocks show luafilesystem || luarocks install luafilesystem
- luarocks show dkjson || luarocks install dkjson --deps-mode=none
script:
2014-08-26 00:14:01 -07:00
- 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
2016-04-07 07:21:29 -07:00
- luacov-coveralls -j c.report.json -v
2014-08-26 00:14:01 -07:00
notifications:
email:
on_success: change
on_failure: always