Browse Source

For CI - don't attempt to reuse the UUID when the binary data differs.
[ci only: Web]

Yao Wei Tjong 姚伟忠 9 years ago
parent
commit
08b132b86d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Rakefile

+ 1 - 0
Rakefile

@@ -496,6 +496,7 @@ task :ci_emscripten_samples_update do
   system 'git clone --depth 1 -q https://github.com/urho3d/urho3d.github.io.git ../urho3d.github.io' or abort 'Failed to clone urho3d/urho3d.github.io'
   system "rsync -a --delete --exclude tool --exclude *.pak --exclude index.md ../Build/bin/ ../urho3d.github.io/samples" or abort 'Failed to rsync Web samples'
   Dir.chdir('../urho3d.github.io/samples') {
+    next unless system 'git diff --quiet Urho3D.js.data'
     uuid = `git diff --color=never --word-diff-regex='\\w+' --word-diff=porcelain Urho3D.js`.split.grep(/^[+-]\w+-/).map { |it| it[0] = ''; it }
     system %Q(ruby -i.bak -pe "gsub '#{uuid.last}', '#{uuid.first}'" Urho3D.js)
     if system 'git diff --quiet Urho3D.js'