mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-22 02:53:06 +00:00
There is no need to keep rockspecs for older versions - it's enough to ensure that `luarocks make` builds currently checked out version. `luarocks new-version <rockspec> <version> --tag=<tag>` generates rockspecs for releases. Use `scm` instead of `dev` as LuaRocks 2 thinks that `dev` versions are less than normal versions like 1.6.3, making it tricky to use bleeding-edge version as a dependency with a constraint such as `luafilesystem >= 1.6.3`.
36 lines
835 B
YAML
36 lines
835 B
YAML
language: c
|
|
|
|
sudo: false
|
|
|
|
env:
|
|
- LUA="lua 5.1"
|
|
- LUA="lua 5.2"
|
|
- LUA="lua 5.3"
|
|
- LUA="luajit 2.0"
|
|
- LUA="luajit 2.1"
|
|
|
|
before_install:
|
|
- pip install --user cpp-coveralls hererocks
|
|
- hererocks env --$LUA --luarocks latest
|
|
- export PATH="$PWD/env/bin:$PATH"
|
|
- luarocks install lua-path
|
|
- luarocks install dkjson
|
|
- luarocks install luacov
|
|
# install luacov-coveralls, but avoid installing luafilesystem
|
|
- luarocks install luacov-coveralls --server=https://luarocks.org/dev --deps-mode=none
|
|
|
|
install:
|
|
- luarocks make CFLAGS="-O2 -fPIC -ftest-coverage -fprofile-arcs" LIBFLAG="-shared --coverage"
|
|
|
|
script:
|
|
- lua -lluacov tests/test.lua
|
|
|
|
after_success:
|
|
- coveralls -b . -i src --dump c.report.json
|
|
- luacov-coveralls -j c.report.json -v
|
|
|
|
notifications:
|
|
email:
|
|
on_success: change
|
|
on_failure: always
|