forked from typetools/checker-framework-inference
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis-build-without-test.sh
executable file
·34 lines (23 loc) · 1.08 KB
/
.travis-build-without-test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
echo "Entering checker-framework-inference/.travis-build-without-test.sh in" `pwd`
# Fail the whole script if any command fails
set -e
export SHELLOPTS
if [ "$(uname)" == "Darwin" ] ; then
export JAVA_HOME=${JAVA_HOME:-$(/usr/libexec/java_home)}
else
export JAVA_HOME=${JAVA_HOME:-$(dirname $(dirname $(readlink -f $(which javac))))}
fi
export JSR308="${JSR308:-$(cd .. && pwd -P)}"
export AFU="${AFU:-$(pwd -P)/../annotation-tools/annotation-file-utilities}"
export CHECKERFRAMEWORK="${CHECKERFRAMEWORK:-$(pwd -P)/../checker-framework}"
export PATH=$AFU/scripts:$JAVA_HOME/bin:$PATH
git -C /tmp/plume-scripts pull > /dev/null 2>&1 \
|| git -C /tmp clone --depth 1 -q https://github.com/plume-lib/plume-scripts.git
## Build Checker Framework
/tmp/plume-scripts/git-clone-related typetools checker-framework ${CHECKERFRAMEWORK}
# This also builds annotation-tools
(cd $CHECKERFRAMEWORK && checker/bin-devel/build.sh downloadjdk jdk8)
# Finally build checker-framework-inference
./gradlew dist
echo "Exiting checker-framework-inference/.travis-build-without-test.sh in" `pwd`