forked from typetools/checker-framework
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check that building the JSpecify Reference Checker works (#821)
- Loading branch information
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -o verbose | ||
set -o xtrace | ||
export SHELLOPTS | ||
echo "SHELLOPTS=${SHELLOPTS}" | ||
|
||
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
# shellcheck disable=SC1090 # In newer shellcheck than 0.6.0, pass: "-P SCRIPTDIR" (literally) | ||
export ORG_GRADLE_PROJECT_useJdk17Compiler=true | ||
source "$SCRIPTDIR"/clone-related.sh | ||
./gradlew assembleForJavac --console=plain -Dorg.gradle.internal.http.socketTimeout=60000 -Dorg.gradle.internal.http.connectionTimeout=60000 | ||
|
||
GIT_SCRIPTS="$SCRIPTDIR/.git-scripts" | ||
# TODO: remove uses of `main-eisop` once that becomes `main`. | ||
"$GIT_SCRIPTS/git-clone-related" jspecify jspecify-reference-checker -b main-eisop | ||
|
||
# Delete the eisop/jdk that was already cloned... | ||
rm -r ../jdk | ||
# instead clone the jspecify/jdk. | ||
"$GIT_SCRIPTS/git-clone-related" jspecify jdk | ||
|
||
cd ../jspecify-reference-checker | ||
git switch main-eisop | ||
./gradlew build conformanceTests demoTest --console=plain --include-build "$CHECKERFRAMEWORK" |