diff options
| author | TitanSnow <[email protected]> | 2017-05-14 10:46:13 +0800 |
|---|---|---|
| committer | TitanSnow <[email protected]> | 2017-05-14 10:46:13 +0800 |
| commit | 60f086485e09685446097e3a82b978a791c121ad (patch) | |
| tree | e8936a568e3a7505a482cefd5e22cde3d3edbb1a | |
| parent | 36187ba80bd03051eda6fcef20dd54368330a367 (diff) | |
add coverage
| -rw-r--r-- | .travis.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 3048265a6..08f53a8ba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,9 +4,26 @@ os: - linux - osx +env: + global: + - LUAROCKS=2.2.2 + - LUA=lua5.1 + +before_install: + - source .travis/setenv_lua.sh + - luarocks install luacov + script: - scripts/get.sh __local__ - xmake lua versioninfo - xmake -P core - export XMAKE_PROGRAM_DIR=$PWD/xmake - core/build/xmake lua versioninfo + - echo 'require("luacov")' > tmp + - cat xmake/core/_xmake_main.lua >> tmp + - mv tmp xmake/core/_xmake_main.lua + - cp core/build/xmake ~/bin + - tests/tests + +after_success: + - bash <(curl -s https://codecov.io/bash) |
