Procházet zdrojové kódy

Continuous Integration: Change else-if to if, so that when multiple natives have been changed that multiple commits are issued.

MeFisto94 před 6 roky
rodič
revize
6aac1a21bd
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 4 4
      private/upload_native.sh

+ 4 - 4
private/upload_native.sh

@@ -25,18 +25,18 @@ if [ "$NATIVE_CHANGES_BULLET" != "" ]; then
     git commit -v -m "[ci skip] bullet: update $TRAVIS_OS_NAME natives"
     git commit -v -m "[ci skip] bullet: update $TRAVIS_OS_NAME natives"
     git pull -q --rebase
     git pull -q --rebase
     git push [email protected]:jMonkeyEngine/jmonkeyengine.git
     git push [email protected]:jMonkeyEngine/jmonkeyengine.git
-elif [ "$NATIVE_CHANGES_ANDROID_BULLET" != "" ]; then
+fi
+if [ "$NATIVE_CHANGES_ANDROID_BULLET" != "" ]; then
     native_changes_common
     native_changes_common
     git add -v -- jme3-bullet-native-android/libs/
     git add -v -- jme3-bullet-native-android/libs/
     git commit -v -m "[ci skip] android bullet: update natives"
     git commit -v -m "[ci skip] android bullet: update natives"
     git pull -q --rebase
     git pull -q --rebase
     git push [email protected]:jMonkeyEngine/jmonkeyengine.git
     git push [email protected]:jMonkeyEngine/jmonkeyengine.git
-elif [ "$NATIVE_CHANGES_ANDROID_NATIVES" != "" ]; then
+fi
+if [ "$NATIVE_CHANGES_ANDROID_NATIVES" != "" ]; then
     native_changes_common
     native_changes_common
     git add -v -- jme3-android-native/libs/
     git add -v -- jme3-android-native/libs/
     git commit -v -m "[ci skip] android: update natives"
     git commit -v -m "[ci skip] android: update natives"
     git pull -q --rebase
     git pull -q --rebase
     git push [email protected]:jMonkeyEngine/jmonkeyengine.git
     git push [email protected]:jMonkeyEngine/jmonkeyengine.git
-else
-    echo No native changes.
 fi
 fi