Bladeren bron

Fix travis after_success script (#813)

* Fix wrong parentheses

* untabify

* Fixup
Stefan Profanter 8 jaren geleden
bovenliggende
commit
5f5d2f6b08
1 gewijzigde bestanden met toevoegingen van 13 en 11 verwijderingen
  1. 13 11
      tools/travis/travis_linux_after_success.sh

+ 13 - 11
tools/travis/travis_linux_after_success.sh

@@ -7,18 +7,20 @@ if [ $ANALYZE = "true" ]; then
 else
     echo "=== Executing after_success scripts ==="
 
-    if [[ "$CC" = "gcc" && "${TRAVIS_REPO_SLUG}" = "open62541/open62541" ]]; then
-    	if [[ ${TRAVIS_PULL_REQUEST} == "false" ]]; then
-			if [[ ${TRAVIS_BRANCH} == "0.2" ]]; then
-				sh ./tools/travis/travis_push_doc.sh
-			fi
-			if [[ ${TRAVIS_BRANCH} == "master" ]]; then
-				sh ./tools/travis/travis_push_coverity.sh
-			fi
-    	fi
+    if [ "$CC" = "gcc" ] && [ "${TRAVIS_REPO_SLUG}" = "open62541/open62541" ]; then
+        if [ ${TRAVIS_PULL_REQUEST} = "false" ]; then
+            if [ ${TRAVIS_BRANCH} = "0.2" ]; then
+                sh ./tools/travis/travis_push_doc.sh
+            fi
+            if [ ${TRAVIS_BRANCH} = "master" ]; then
+                sh ./tools/travis/travis_push_coverity.sh
+            fi
+        else
+           echo "  Skipping push doc/coverity on pull requests"
+        fi
 
-    	sh ./tools/travis/travis_push_release.sh;
+        sh ./tools/travis/travis_push_release.sh;
     else
         echo "  Skipping push scripts since not gcc and/or ${TRAVIS_REPO_SLUG} is not the main repo"
-	fi
+    fi
 fi