]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
travis: Check for unignored build artifacts after the build
authorTobias Brunner <tobias@strongswan.org>
Thu, 4 Apr 2019 15:41:53 +0000 (17:41 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 4 Apr 2019 16:40:22 +0000 (18:40 +0200)
scripts/test.sh

index 41bcdb414e7ac5d687a199b9316c4e52543d7203..b958db1a0d1b0163b477978e1021f1a97684a24f 100755 (executable)
@@ -324,6 +324,7 @@ apidoc)
                cat make.warnings
                exit 1
        fi
+       rm make.warnings
        ;;
 sonarcloud)
        sonar-scanner \
@@ -332,7 +333,16 @@ sonarcloud)
                -Dsonar.sources=. \
                -Dsonar.cfamily.threads=2 \
                -Dsonar.cfamily.build-wrapper-output=bw-output || exit $?
+       rm -r bw-output .scannerwork
        ;;
 *)
        ;;
 esac
+
+# ensure there are no unignored build artifacts (or other changes) in the Git repo
+unclean="$(git status --porcelain)"
+if test -n "$unclean"; then
+       echo "Unignored build artifacts or other changes:"
+       echo "$unclean"
+       exit 1
+fi