瀏覽代碼

upload_native.sh: add debugging aids and comments

Stephen Gold 6 年之前
父節點
當前提交
0f3bc6cdcf
共有 1 個文件被更改,包括 21 次插入0 次删除
  1. 21 0
      private/upload_native.sh

+ 21 - 0
private/upload_native.sh

@@ -1,6 +1,9 @@
 #!/bin/bash
 set -euo pipefail
 
+# This shell script runs only during continuous integration at TravisCI.
+# Its purpose is to commit native libraries to the project's GitHub repo.
+
 function native_changes_common() {
     echo " - Configuring GIT user"
     git config --global user.email "travis-ci"
@@ -20,23 +23,41 @@ NATIVE_CHANGES_ANDROID_BULLET="$(git diff-tree --name-only "$TRAVIS_COMMIT" -- j
 NATIVE_CHANGES_ANDROID_NATIVES="$(git diff-tree --name-only "$TRAVIS_COMMIT" -- jme3-android-native/)"
 
 if [ "$NATIVE_CHANGES_BULLET" != "" ]; then
+    echo " - Found changes in jme3-bullet-native"
     native_changes_common
     git add -v -- jme3-bullet-native/libs/native/
+    git status
+    echo " - Commit changes in jme3-bullet-native"
     git commit -v -m "[ci skip] bullet: update $TRAVIS_OS_NAME natives"
     git pull -q --rebase
+    echo " - Push changes in jme3-bullet-native"
     git push [email protected]:jMonkeyEngine/jmonkeyengine.git
+else
+    echo " - No changes in jme3-bullet-native"
 fi
 if [ "$NATIVE_CHANGES_ANDROID_BULLET" != "" ]; then
+    echo " - Found changes in jme3-bullet-native-android"
     native_changes_common
     git add -v -- jme3-bullet-native-android/libs/
+    git status
+    echo " - Commit changes in jme3-bullet-native-android"
     git commit -v -m "[ci skip] android bullet: update natives"
     git pull -q --rebase
+    echo " - Push changes in jme3-bullet-native-android"
     git push [email protected]:jMonkeyEngine/jmonkeyengine.git
+else
+    echo " - No changes in jme3-bullet-native-android"
 fi
 if [ "$NATIVE_CHANGES_ANDROID_NATIVES" != "" ]; then
+    echo " - Found changes in jme3-android-native"
     native_changes_common
     git add -v -- jme3-android-native/libs/
+    git status
+    echo " - Commmit changes in jme3-android-native"
     git commit -v -m "[ci skip] android: update natives"
     git pull -q --rebase
+    echo " - Push changes in jme3-android-native"
     git push [email protected]:jMonkeyEngine/jmonkeyengine.git
+else
+    echo " - No changes in jme3-android-native"
 fi