forked from aas-integration/integration-test2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fetch_dependencies.sh
executable file
·75 lines (60 loc) · 2.05 KB
/
fetch_dependencies.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/bin/bash
# Prevents the Checker frameworks building process from crashing.
export TRAVIS_REPO_SLUG="typetools/checker-framework-inference"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
pushd ${DIR} &> /dev/null
# Libraries
mkdir -p libs
pushd libs &> /dev/null
JARS=(
"http://www.csl.sri.com/users/schaef/jars/daikon.jar"
"https://github.com/randoop/randoop/releases/download/v3.0.3/randoop-all-3.0.3.jar"
"https://www.dropbox.com/s/i1iqgf9w7jk1x3x/prog2dfg.jar"
"https://github.com/junit-team/junit/releases/download/r4.12/junit-4.12.jar"
"http://search.maven.org/remotecontent?filepath=org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar"
"https://github.com/petablox-project/petablox/releases/download/v1.0/petablox.zip"
)
for jar in "${JARS[@]}"
do
base=$(basename ${jar})
echo Fetching ${base}
curl -L -o ${base} ${jar} &> /dev/null
if [[ ${base} == randoop* ]] ;
then
echo Renaming ${base} to randoop.jar
mv ${base} "randoop.jar"
fi
done
# Rename randoop's release-specific-name to just randoop.jar
# Unpack petablox
unzip -o petablox.zip
rm petablox.zip
popd &> /dev/null # Exit libs
# get setuptools and pip
#echo Install setuptools and pip
#curl https://bootstrap.pypa.io/ez_setup.py -o - | python
#curl https://bootstrap.pypa.io/get-pip.py -o - | python
# Tools
mkdir -p tools
pushd tools &> /dev/null
# Fetch do-like-javac
if [ ! -d do-like-javac ]; then
git clone https://github.com/SRI-CSL/do-like-javac.git
pushd do-like-javac &> /dev/null
git checkout checker
popd &> /dev/null # Exit do-like-javac
else
pushd do-like-javac &> /dev/null
git pull
popd &> /dev/null # Exit do-like-javac
fi
if [ ! -d "generic-type-inference-solver" ]; then
git clone https://github.com/pascaliUWat/generic-type-inference-solver.git
fi
pushd generic-type-inference-solver &> /dev/null
git pull
export TRAVIS_BUILD_DIR=`pwd`
./.travis-build-without-test.sh
popd &> /dev/null # Exit generic-type-inference-solver
popd &> /dev/null # Exit tools
popd &> /dev/null # Exit integration-test