diff options
| author | ruki <[email protected]> | 2018-08-24 23:23:13 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-08-24 14:19:22 +0800 |
| commit | a4e343833a69a1a8e36d0f3349574f531ee0eea5 (patch) | |
| tree | fee7ff00ba26ccd0e10faeaf5ad0766c3c3da755 | |
| parent | 8c591721482f09e392563fbec1cc66fca0925139 (diff) | |
fix travis ci
| -rw-r--r-- | .travis.yml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index 6dc9912ea..93281c1f0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,7 +17,7 @@ matrix: install: - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; brew install dmd rust; fi - - sudo luarocks install luacov || sudo luarocks-5.1 install luacov + - if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo luarocks install luacov || sudo luarocks-5.1 install luacov; fi - echo $CI script: @@ -30,10 +30,10 @@ script: - core/build/xmake lua versioninfo - echo "require('luacov.runner').init({['statsfile']='$PWD/luacov.stats.out',['reportfile']='$PWD/luacov.report.out'})" > tmp - export XMAKE_PROGRAM_DIR=~/.local/share/xmake - - if [ "$TRAVIS_OS_NAME" = "linux" ]; cat xmake/core/_xmake_main.lua >> tmp; mv tmp "$XMAKE_PROGRAM_DIR/core/_xmake_main.lua"; fi + - if [ "$TRAVIS_OS_NAME" = "linux" ]; then cat xmake/core/_xmake_main.lua >> tmp; mv tmp "$XMAKE_PROGRAM_DIR/core/_xmake_main.lua"; fi - cp core/build/xmake "$XMAKE_PROGRAM_DIR" || sudo cp core/build/xmake "$XMAKE_PROGRAM_DIR" - xmake lua versioninfo - xmake lua --backtrace tests/test.lua after_success: - - if [ "$TRAVIS_OS_NAME" = "linux" ]; luacov; bash <(curl -s https://codecov.io/bash); fi + - if [ "$TRAVIS_OS_NAME" = "linux" ]; then luacov; bash <(curl -s https://codecov.io/bash); fi |
