Explorar o código

Disable sonarcube on forks

Stefan Profanter %!s(int64=7) %!d(string=hai) anos
pai
achega
aea992bd87
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      tools/travis/travis_linux_script.sh

+ 4 - 0
tools/travis/travis_linux_script.sh

@@ -4,6 +4,10 @@ set -e
 
 # Sonar code quality
 if ! [ -z ${SONAR+x} ]; then
+    if ! [ "${TRAVIS_REPO_SLUG}" = "open62541/open62541" ]; then
+        # Skip on forks
+        exit 0;
+    fi
     git fetch --unshallow
 	mkdir -p build && cd build
 	build-wrapper-linux-x86-64 --out-dir ../bw-output cmake -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/$PYTHON \