.travis.yml 835 B

123456789101112131415161718192021222324252627282930313233343536
  1. language: c
  2. sudo: false
  3. env:
  4. - LUA="lua 5.1"
  5. - LUA="lua 5.2"
  6. - LUA="lua 5.3"
  7. - LUA="luajit 2.0"
  8. - LUA="luajit 2.1"
  9. before_install:
  10. - pip install --user cpp-coveralls hererocks
  11. - hererocks env --$LUA --luarocks latest
  12. - export PATH="$PWD/env/bin:$PATH"
  13. - luarocks install lua-path
  14. - luarocks install dkjson
  15. - luarocks install luacov
  16. # install luacov-coveralls, but avoid installing luafilesystem
  17. - luarocks install luacov-coveralls --server=https://luarocks.org/dev --deps-mode=none
  18. install:
  19. - luarocks make CFLAGS="-O2 -fPIC -ftest-coverage -fprofile-arcs" LIBFLAG="-shared --coverage"
  20. script:
  21. - lua -lluacov tests/test.lua
  22. after_success:
  23. - coveralls -b . -i src --dump c.report.json
  24. - luacov-coveralls -j c.report.json -v
  25. notifications:
  26. email:
  27. on_success: change
  28. on_failure: always