-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis_install.sh
executable file
·68 lines (59 loc) · 1.37 KB
/
.travis_install.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
#!/bin/bash
# compile test projects
function compile {
if [[ ! -d "$1target/classes" ]]; then
echo compiling $1
cd $1
mvn test -DskipTests
cd ../../
fi
}
function compilef {
echo compilingf $1
cd $1
mvn clean
mvn install -DskipTests
cd ../../
}
function compilemaven {
DIR=$1
OLD=`pwd`
for FILE in ls "$DIR"*
do
#cd $FILE
#pwd
echo compiling $FILE
#if [[ ! -d "$1target/classes" && -f "$1pom.xml" ]]; then
if [[ -f "$FILE/pom.xml" ]]; then
cd $FILE
echo in dir `pwd`
mvn clean
echo after claning $FILE
mvn test -DskipTests
cd ../../../
fi
done
# cd $OLD
}
echo calling compile maven
compilemaven "examples/testMultiMet/"
compilemaven "examples/testMet/"
compile "examples/Math-0c1ef/"
compile "examples/math_85/"
compile "examples/math_70/"
compile "examples/Math-issue-280/"
compile "examples/Math-issue-288/"
compile "examples/math_2/"
compile "examples/jsoup31be24/"
compile "examples/introclass/3b2376/003/"
compile "examples/math_50/"
compile "examples/math_74/"
compile "examples/math_76/"
compile "examples/math_106/"
compile "examples/lang_63/"
compile "examples/lang_39/"
compile "examples/lang_1/"
compile "examples/lang_55/"
compile "examples/math_57/"
compile "examples/math_70_modified/"
compile "examples/lang_7/"