keycloak-scim/testsuite/model/test-all-profiles.sh
2021-05-06 11:38:41 +02:00

21 lines
540 B
Bash
Executable file

#!/bin/bash
cd "$(dirname $0)"
mvn -version
EXIT_CODE=0
mvn clean
for I in `perl -ne 'print "$1\n" if (m,<id>([^<]+)</id>,)' pom.xml`; do
echo "========"
echo "======== Profile $I"
echo "========"
mvn -B test "-P$I" "$@"
EXIT_CODE=$[$EXIT_CODE + $?]
mv target/surefire-reports "target/surefire-reports-$I"
done
for I in `perl -ne 'print "$1\n" if (m,<id>([^<]+)</id>,)' pom.xml`; do
grep -A 1 --no-filename '<<<' "target/surefire-reports-$I"/*.txt | perl -pe "print '::error::| $I | ';"
done
exit $EXIT_CODE