forked from compose/transporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
31 lines (26 loc) · 1.14 KB
/
circle.yml
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
machine:
environment:
ME: "transporter"
GOBIN: "$CIRCLE_ARTIFACTS"
dependencies:
override:
- go get github.com/tools/godep
- test -d /home/ubuntu/.go_workspace/src/github.com/compose/ || mkdir -p /home/ubuntu/.go_workspace/src/github.com/compose/
- test -e /home/ubuntu/.go_workspace/src/github.com/compose/transporter || ln -s /home/ubuntu/transporter/ /home/ubuntu/.go_workspace/src/github.com/compose/
- cd /home/ubuntu/.go_workspace/src/github.com/compose/transporter && $CIRCLE_ARTIFACTS/godep restore
- test -d $HOME/boto || pip install -t $HOME/boto boto
cache_directories:
- "/home/ubuntu/boto"
- "/home/ubuntu/bin"
test:
override:
- $CIRCLE_ARTIFACTS/godep go test ./... -tags=integration -v
deployment:
default:
branch: [master, stage, dev, experimental]
commands:
- goxc -os="linux,darwin" -arch="amd64"
# - sh ./circle/build_deb.sh
# - tar zcvf $HOME/$ME-$CIRCLE_BRANCH.tgz $CIRCLE_ARTIFACTS/
# - cd $CIRCLE_ARTIFACTS && tar zcvf $HOME/$ME-$CIRCLE_BRANCH.tgz . ; cd $HOME/$ME
# - python ./circle/s3push.py "$HOME/$ME-$CIRCLE_BRANCH.tgz" "$ME-$CIRCLE_BRANCH.tgz"