-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.sh
executable file
·43 lines (29 loc) · 1.26 KB
/
setup.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
35
36
37
38
39
40
41
42
43
#!/bin/bash
# Fail the whole script if any command fails
set -e
export JAVA_HOME=${JAVA_HOME:-$(dirname $(dirname $(dirname $(readlink -f $(/usr/bin/which java)))))}
export JSR308=$(cd $(dirname "$0")/.. && pwd)
# export SHELLOPTS
if [ -d "/tmp/plume-scripts" ] ; then
git -C /tmp/plume-scripts pull -q
else
git -C /tmp clone --depth 1 -q https://github.com/plume-lib/plume-scripts.git
fi
#default value is opprop. REPO_SITE may be set to other value for travis test purpose.
export REPO_SITE="${REPO_SITE:-opprop}"
echo "------ Downloading everything from REPO_SITE: $REPO_SITE ------"
##### build checker-framework-inference
if [ -d $JSR308/checker-framework-inference ] ; then
(cd $JSR308/checker-framework-inference && git pull)
else
/tmp/plume-scripts/git-clone-related $REPO_SITE checker-framework-inference $JSR308/checker-framework-inference
fi
(cd $JSR308/checker-framework-inference && ./.ci-build-without-test.sh && ./gradlew testLibJar)
echo "Fetching DLJC"
if [ -d $JSR308/do-like-javac ] ; then
(cd $JSR308/do-like-javac && git pull)
else
/tmp/plume-scripts/git-clone-related $REPO_SITE do-like-javac $JSR308/do-like-javac
fi
echo "Building security-demo without testing"
(cd $JSR308/security-demo && ./gradlew build -x test --console=plain)