Browse Source

For CI - still exclude tool building for PR build on AppVeyor.
Unlike Travis, initial build for PR on AppVeyor does not inherit cache from the master branch, thus exclude the tool for faster build time.

Yao Wei Tjong 姚伟忠 8 years ago
parent
commit
d7bae3aef8
2 changed files with 2 additions and 1 deletions
  1. 1 0
      .appveyor.yml
  2. 1 1
      Rakefile

+ 1 - 0
.appveyor.yml

@@ -64,6 +64,7 @@ before_build:
   - ps: $env:COMMIT_MESSAGE = $(git log --format=%B -n 1 $env:APPVEYOR_REPO_COMMIT)
   - rake ci_setup_cache
 build_script:
+  - ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER) { $env:URHO3D_TOOLS = "0" }
   - rake ci && if "%PACKAGE_UPLOAD%" == "1" rake ci_package_upload && move Build\*.zip . && rd /S /Q Build\_CPack_Packages
   - rake ci_timer
 after_build: rake ci_teardown_cache

+ 1 - 1
Rakefile

@@ -449,7 +449,7 @@ desc 'Teardown build cache'
 task :ci_teardown_cache do
   # AppVeyor on Windows host has different kind of cache mechanism, not based on ccache
   if ENV['APPVEYOR']
-    # No-op for now
+    system "bash -c 'rm -rf #{ENV['build_tree']}/{bin,Source/Urho3D/tolua++-prefix/src/tolua++-build/bin}'"
     next
   # Upload cache to internal cache store if it is our own
   elsif ENV['USE_CCACHE'].to_i == 2