Created
March 12, 2020 16:34
-
-
Save pcdavid/d316c849f2f2191adc3304ab15518cc6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
readonly PLATFORM="${1:-2019-06}" | |
readonly SUITE="${2:-junit}" | |
#SUITE="swtbot-sequence" | |
#SUITE="swtbot" | |
readonly COMMIT="$(git describe)" | |
readonly NAME="sirius-tests_${COMMIT}_${SUITE}" | |
readonly IMAGE="eclipsesirius/build:1.1" | |
readonly TARGET="$HOME/tmp/$NAME" | |
mkdir -p "$TARGET" | |
git show HEAD > "$TARGET/commit.txt" | |
mvn -Dtycho.mode=maven clean | |
docker run --rm --name="$NAME" \ | |
-p 32001:5900 \ | |
-e PLATFORM="$PLATFORM" \ | |
-e GOAL="verify" \ | |
-e TESTS_SUITES="$SUITE" \ | |
-e FAIL_AT_END="true" \ | |
-v "$HOME/.m2:/sirius/.m2" \ | |
-v "$PWD:/sirius/git" \ | |
"$IMAGE" 2>&1 | tee "$TARGET/${NAME}.log" | |
cp $(find "$PWD" -name "org_eclipse*.txt" -o -name "TEST*xml" -o -name "org.eclipse.sirius.tests*.txt") "$TARGET" | |
find . -name ".*log" | while read -r f; do cp "$f" "${TARGET}/error$(basename "${f}").txt"; done | |
notify-send "$NAME finished" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment