46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
language: c
|
|
|
|
env:
|
|
global:
|
|
- LUAROCKS=2.2.0
|
|
matrix:
|
|
- LUA=lua5.1
|
|
- LUA=lua5.2
|
|
- LUA=lua5.3
|
|
- LUA=luajit
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
|
|
before_install:
|
|
- sudo apt-get update
|
|
- bash .travis/setup_lua.sh
|
|
- sudo luarocks install https://raw.github.com/moteus/lunit/moteus-skip/rockspecs/lunitx-scm.mot.skip-0.rockspec
|
|
- sudo pip install cpp-coveralls
|
|
- sudo luarocks install dkjson --deps-mode=none
|
|
- sudo luarocks install luafilesystem --from=https://rocks.moonscript.org/dev
|
|
- sudo luarocks install lua-path --deps-mode=none
|
|
- sudo luarocks install luacov-coveralls
|
|
|
|
install:
|
|
- sudo luarocks make rockspecs/lua-curl-scm-0.rockspec CFLAGS="-O2 -fPIC -ftest-coverage -fprofile-arcs" LIBFLAG="-shared --coverage"
|
|
|
|
script:
|
|
- cd test
|
|
- lua -e "print(require 'cURL.utils'.find_ca_bundle())"
|
|
- lunit.sh test_easy.lua
|
|
- lunit.sh test_safe.lua
|
|
- lunit.sh test_form.lua
|
|
- lunit.sh test_pause02.c.lua
|
|
- lunit.sh test_curl.lua
|
|
|
|
after_success:
|
|
- coveralls -b .. -r .. --dump c.report.json
|
|
- luacov-coveralls -j c.report.json
|
|
|
|
notifications:
|
|
email:
|
|
on_success: change
|
|
on_failure: always
|