ignacio / lua-appveyor-example

For experiments with AppVeyor CI
MIT License
13 stars 8 forks source link

Add coveralls. #18

Closed moteus closed 8 years ago

moteus commented 8 years ago

Now master version of luacov-coveralls supports appveyor. So it possible use it as luarocks show luacov-coveralls || luarocks install luacov-coveralls --server=https://luarocks.org/dev for test. But because in rocspec it has lua-cjson as deps it has problem with installation. In fact luacov-coveralls cat works also with dkjson. Also lua-path under windows require bit32 library on Lua 5.1. So result install for now can be look like.

before_test:
  - luarocks show luacov || luarocks install luacov

after_test:
  - if "%LUA_VER:~0,3%"=="5.1" (luarocks show bit32 || luarocks install bit32)
  - luarocks show dkjson || luarocks install dkjson
  - luarocks show luafilesystem || luarocks install luafilesystem
  - luarocks show lua-path || luarocks install lua-path
  - luarocks show luacov-coveralls || luarocks install luacov-coveralls --server=https://luarocks.org/dev --deps-mode=none
  - luacov-coveralls -v
ignacio commented 8 years ago

Thank you. I'll look into adding this.

moteus commented 8 years ago

Looks like they some think change. I get error while try send report.Checkout it tomorrow.

moteus commented 8 years ago

Ok. Seems it works only with repo_token Also I fix job id in luacov-coveralls today. This is my branch. To build you need also add in AppVeyor Project->Settings->Environment And add variable COVERALLS_REPO_TOKEN equal to repo_token from coveralls project. But this allows to coverage only for Lua part. I do not know how to do this for MSVC. Also I can make work gcov on my Windows but I do not remember how.

moteus commented 8 years ago

Just release new version. It uses dkjson by default. So to install on Windows it require

  - if "%LUA_VER:~0,3%"=="5.1" (luarocks install bit32)
  - luarocks install luacov-coveralls
ignacio commented 8 years ago

Thank you!