Browse Source

For Travis CI - sync the samples first then update json data file.
[ci skip]

Yao Wei Tjong 姚伟忠 10 years ago
parent
commit
6ef0f702c7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Rakefile

+ 2 - 2
Rakefile

@@ -223,10 +223,10 @@ desc 'Update Emscripten HTML5 samples to GitHub Pages'
 task :ci_emscripten_samples_update do
   # 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 Emscripten json data file
-  update_emscripten_data or abort 'Failed to update Emscripten json data file'
   # Sync Emscripten samples
   system "rsync -a --delete --exclude tool ../Build/bin/ ../doc-Build/samples" or abort 'Failed to rsync Emscripten samples'
+  # Update Emscripten json data file
+  update_emscripten_data or abort 'Failed to update Emscripten json data file'
   # Supply GIT credentials and push the changes to urho3d/urho3d.github.io.git
   system "cd ../doc-Build && git config user.name $GIT_NAME && git config user.email $GIT_EMAIL && git remote set-url --push origin https://[email protected]/urho3d/urho3d.github.io.git && git add -A . && ( git commit -q -m \"Travis CI: Emscripten samples update at #{Time.now.utc}.\n\nCommit: https://github.com/$TRAVIS_REPO_SLUG/commit/$TRAVIS_COMMIT\n\nMessage: $COMMIT_MESSAGE\" || true) && git push -q >/dev/null 2>&1" or abort 'Failed to update Emscripten samples'
 end