forked from openworm/org.geppetto.frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
travis-install.sh
executable file
·55 lines (46 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
#!/bin/bash
git clone https://github.com/openworm/org.geppetto.model.git -b $TRAVIS_BRANCH
if [ $? -eq 0 ]
then
echo "Successfully cloned org.geppetto.model, branch: "
echo $TRAVIS_BRANCH
else
echo "Failed to clone org.geppetto.model, branch: "
echo $TRAVIS_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 $TRAVIS_BRANCH
if [ $? -eq 0 ]
then
echo "Successfully cloned org.geppetto.core, branch: "
echo $TRAVIS_BRANCH
else
echo "Failed to clone org.geppetto.core, branch: "
echo $TRAVIS_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 $TRAVIS_BRANCH
if [ $? -eq 0 ]
then
echo "Successfully cloned org.geppetto.simulation, branch: "
echo $TRAVIS_BRANCH
else
echo "Failed to clone org.geppetto.simulation, branch: "
echo $TRAVIS_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 ..