File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ echo Entering " $( cd " $( dirname " $0 " ) " && pwd -P) /$( basename " $0 " ) " in ` pwd`
4+
5+ set -e
6+
7+ export SHELLOPTS
8+
9+ if [ " $( uname) " == " Darwin" ] ; then
10+ export JAVA_HOME=${JAVA_HOME:- $(/ usr/ libexec/ java_home)}
11+ else
12+ export JAVA_HOME=${JAVA_HOME:- $(dirname $(dirname $(readlink -f $(which javac))))}
13+ fi
14+
15+ if [ -d " /tmp/plume-scripts" ] ; then
16+ git -C /tmp/plume-scripts pull -q
17+ else
18+ git -C /tmp clone --depth 1 -q https://github.com/eisop-plume-lib/plume-scripts.git
19+ fi
20+
21+
22+ export CFI=" ${CFI:- $(pwd -P)/ ../ checker-framework-inference} "
23+
24+ # # Build Checker Framework Inference (which also clones & builds dependencies)
25+ /tmp/plume-scripts/git-clone-related opprop checker-framework-inference ${CFI}
26+ (cd $CFI && ./.ci-build-without-test.sh)
27+
28+ ./gradlew assemble
29+
30+ echo Exiting " $( cd " $( dirname " $0 " ) " && pwd -P) /$( basename " $0 " ) " in ` pwd`
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ echo Entering " $( cd " $( dirname " $0 " ) " && pwd -P) /$( basename " $0 " ) " in ` pwd`
4+
5+ # Fail the whole script if any command fails
6+ set -e
7+
8+ export SHELLOPTS
9+
10+ . ./.ci-build-without-test.sh
11+
12+ ./gradlew test
Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+ pull_request :
7+ branches : [ master ]
8+
9+ jobs :
10+ build :
11+ strategy :
12+ matrix :
13+ jdk : [ 8, 11, 17 ]
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - name : Pull Request Checkout
18+ uses : actions/checkout@v2
19+ with :
20+ ref : ${{github.event.pull_request.head.ref}}
21+ repository : ${{github.event.pull_request.head.repo.full_name}}
22+ if : github.head_ref != ''
23+ - name : Push Checkout
24+ uses : actions/checkout@v2
25+ if : github.head_ref == ''
26+ - name : Set up JDK
27+ uses : actions/setup-java@v2
28+ with :
29+ java-version : ${{matrix.jdk}}
30+ distribution : ' temurin'
31+ - name : Build and test
32+ run : ./.ci-build.sh
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments