-
Notifications
You must be signed in to change notification settings - Fork 11
/
init-build.sh
executable file
·81 lines (66 loc) · 1.9 KB
/
init-build.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
76
77
78
79
80
81
echo "Prebuilding various dependencies needed for dronehub"
# The akka build will fail on some unimportant parts
# set -e
git submodule update --recursive --init
# echo "Installing LogAnalyzer dependencies"
# pip install numpy
if [ ! -f ~/nestor.conf ]; then
echo "Seeding ~/nestor.conf YOU MUST EDIT IT LATER!"
cp nestor.conf.template ~/nestor.conf
fi
# We build in /tmp because it might be a ramfs and much faster
echo rebuilding dependencies
rm -rf /tmp/dependencies
mkdir /tmp/dependencies
cd /tmp/dependencies
#SCALA=scala-2.10.4
#wget http://www.scala-lang.org/files/archive/$SCALA.tgz
#tar xvzf $SCALA.tgz
#pushd ~/bin
#ln -s ../dependencies/$SCALA/bin/* .
#popd
# We are not using hull currently, so deprecate for now
# git clone https://github.com/geeksville/hull-java.git
# cd hull-java/
# mvn install
# cd ..
# We want to wait for all of our spawned children before exiting
pids = ""
bash << EOF &
git clone https://github.com/geeksville/sbt-scalabuff.git
cd sbt-scalabuff/
sbt publishLocal
cd ..
EOF
pids="$pids $!"
bash << EOF &
git clone -b fixes_for_dronehub https://github.com/geeksville/json4s.git
cd json4s
sbt publishLocal
cd ..
EOF
pids="$pids $!"
bash << EOF &
# akka needs sphinx to make docs
# DO NOT USE SUDO it breaks the CI server
pip install sphinx
git clone https://github.com/geeksville/akka.git
cd akka
sbt -Dakka.scaladoc.diagrams=false publishLocal
cd ..
git clone -b 2.3.x_2.10 https://github.com/geeksville/scalatra.git
cd scalatra
sbt publishLocal
cd ..
EOF
pids="$pids $!"
bash << EOF &&
git clone https://github.com/geeksville/scala-activerecord.git
cd scala-activerecord
sbt "project core" publishLocal "project generator" publishLocal "project scalatra" publishLocal "project scalatraSbt" publishLocal
cd ..
EOF
pids="$pids $!"
echo Fixing up bad ivy files on codeship
find ~/.ivy2/cache -name \*.original | xargs rm
wait $pids # wait for our various parallel child jobs to finish