summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.appveyor.yml1
-rw-r--r--.travis.yml1
-rw-r--r--xmake/actions/build/statistics.lua2
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