forked from CodisLabs/codis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.sh
executable file
·42 lines (38 loc) · 1.23 KB
/
bootstrap.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
#!/bin/sh
make clean
echo "downloading dependcies, it may take a few minutes..."
# Test godep install, steal it from LedisDB project :P
godep path > /dev/null 2>&1
if [ "$?" = 0 ]; then
GOPATH=`godep path`:$GOPATH
godep restore
make || exit $?
make gotest
exit 0
fi
go get -u github.com/alicebob/miniredis
go get -u github.com/bsm/redeo
go get -u github.com/c4pt0r/cfg
go get -u github.com/codegangsta/inject
go get -u github.com/codegangsta/martini
go get -u github.com/codegangsta/martini-contrib/binding
go get -u github.com/codegangsta/martini-contrib/render
go get -u github.com/coreos/etcd/error
go get -u github.com/coreos/go-etcd/etcd
go get -u github.com/docopt/docopt-go
go get -u github.com/garyburd/redigo/internal
go get -u github.com/garyburd/redigo/redis
go get -u github.com/go-martini/martini
go get -u github.com/juju/errors
go get -u github.com/martini-contrib/cors
go get -u github.com/ngaut/deadline
go get -u github.com/ngaut/go-zookeeper/zk
go get -u github.com/ngaut/gostats
go get -u github.com/ngaut/logging
go get -u github.com/ngaut/pools
go get -u github.com/ngaut/resp
go get -u github.com/ngaut/sync2
go get -u github.com/ngaut/zkhelper
go get -u github.com/nu7hatch/gouuid
make || exit $?
make gotest