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
|
2014-09-11 05:28:42 -07:00
|
|
|
- lua -e "print(require 'cURL.utils'.find_ca_bundle())"
|
2016-04-20 00:31:06 -07:00
|
|
|
- lunit.sh run.lua
|
|
|
|
- lua test_pause02.c.lua
|
2016-09-27 07:52:49 -07:00
|
|
|
- lua test_multi_callback.lua
|
2016-09-28 02:53:40 -07:00
|
|
|
- lua test_multi_nested_callback.lua.lua
|
2016-04-20 00:31:06 -07:00
|
|
|
# - lunit.sh test_easy.lua
|
|
|
|
# - lunit.sh test_safe.lua
|
|
|
|
# - lunit.sh test_form.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
|