diff options
| author | ruki <[email protected]> | 2017-09-15 22:27:34 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-09-15 08:45:29 +0800 |
| commit | b28a88e0e0bcb2c5a300fa0305c8f812f21d353f (patch) | |
| tree | 8c92ad488597e4c23f88d276c7cd3fc34036b631 | |
| parent | 1dbd8b452a46d9912c9dbb8fb23c2f475ca008fb (diff) | |
detect ci env
| -rw-r--r-- | .appveyor.yml | 1 | ||||
| -rw-r--r-- | .travis.yml | 1 | ||||
| -rw-r--r-- | xmake/actions/build/statistics.lua | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/.appveyor.yml b/.appveyor.yml index 81afa1a5a..52f96e12d 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -20,6 +20,7 @@ install: - ps: Remove-Item luarocks.zip - cmd: luarocks install luacov - ps: Copy-Item -Recurse C:\lua\share\lua\5.1 $HOME\xmake\lua + - cmd: echo %CI% build_script: - ps: Invoke-Expression (Get-Content scripts\get.ps1 | Out-String) diff --git a/.travis.yml b/.travis.yml index 3bfb1de23..8f9def52a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,6 +18,7 @@ matrix: install: - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install dmd rust lua51; fi - sudo luarocks install luacov || sudo luarocks-5.1 install luacov + - echo $CI script: - scripts/get.sh __local__ diff --git a/xmake/actions/build/statistics.lua b/xmake/actions/build/statistics.lua index 993b95b9f..7a02420a0 100644 --- a/xmake/actions/build/statistics.lua +++ b/xmake/actions/build/statistics.lua @@ -42,7 +42,7 @@ function post() -- has been posted today or statistics is disable? local outputdir = path.join(os.tmpdir(), "stats", os.date("%y%m%d"), projectname) local markfile = outputdir .. ".mark" - if os.isdir(outputdir) or os.isfile(markfile) or os.getenv("XMAKE_STATS") == "disable" then + if os.isdir(outputdir) or os.isfile(markfile) or os.getenv("XMAKE_STATS") == "false" or os.getenv("CI") == "true" then return end |
