فهرست منبع

For Travis CI - skip the other tasks when the main ci task was skipped.
[ci only: master]

Yao Wei Tjong 姚伟忠 10 سال پیش
والد
کامیت
bac78d8bae
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      Rakefile

+ 4 - 0
Rakefile

@@ -241,6 +241,8 @@ end
 # Usage: NOT intended to be used manually
 desc 'Update site documentation to GitHub Pages'
 task :ci_site_update do
+  # Skip when :ci rake task was skipped
+  next unless Dir.exists?('../Build')
   # Pull or clone
   system 'cd ../doc-Build 2>/dev/null && git pull -q -r || git clone --depth 1 -q https://github.com/urho3d/urho3d.github.io.git ../doc-Build' or abort 'Failed to pull/clone'
   # Update credits from README.md to about.md
@@ -316,6 +318,8 @@ end
 # Usage: NOT intended to be used manually
 desc 'Make binary package and upload it to a designated central hosting server'
 task :ci_package_upload do
+  # Skip when :ci rake task was skipped
+  next unless Dir.exists?('../Build')
   if ENV['XCODE']
     $configuration = 'Release'
     $testing = 0