-
Notifications
You must be signed in to change notification settings - Fork 25
/
travis-install.sh
executable file
·58 lines (48 loc) · 1.56 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
#!/bin/bash
export main_repo_branch=$TRAVIS_BRANCH
if [[ ${main_repo_branch} != "master" && ${main_repo_branch} != "development" ]]; then main_repo_branch=development ; fi
git clone https://github.com/openworm/org.geppetto.model.git -b $main_repo_branch
if [ $? -eq 0 ]
then
echo "Successfully cloned org.geppetto.model, branch: "
echo $main_repo_branch
else
echo "Failed to clone org.geppetto.model, branch: "
echo $main_repo_branch
echo "... it probably doesn't exist"
echo "Cloning master branch instead"
git clone https://github.com/openworm/org.geppetto.model.git -b master
fi
cd org.geppetto.model
mvn install
cd ..
git clone https://github.com/openworm/org.geppetto.core.git -b $main_repo_branch
if [ $? -eq 0 ]
then
echo "Successfully cloned org.geppetto.core, branch: "
echo $main_repo_branch
else
echo "Failed to clone org.geppetto.core, branch: "
echo $main_repo_branch
echo "... it probably doesn't exist"
echo "Cloning master branch instead"
git clone https://github.com/openworm/org.geppetto.core.git -b master
fi
cd org.geppetto.core
mvn install
cd ..
git clone https://github.com/openworm/org.geppetto.simulation.git -b $main_repo_branch
if [ $? -eq 0 ]
then
echo "Successfully cloned org.geppetto.simulation, branch: "
echo $main_repo_branch
else
echo "Failed to clone org.geppetto.simulation, branch: "
echo $main_repo_branch
echo "... it probably doesn't exist"
echo "Cloning master branch instead"
git clone https://github.com/openworm/org.geppetto.simulation.git -b master
fi
cd org.geppetto.simulation
mvn install
cd ..