-
Notifications
You must be signed in to change notification settings - Fork 226
/
circle.yml
51 lines (47 loc) · 1.33 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
machine:
environment:
CHECKOUT_DIR: $HOME/$CIRCLE_PROJECT_REPONAME
GOPATH: $HOME/go
GOROOT: $HOME/golang/go
PATH: $GOROOT/bin:$GOPATH/bin:/$PATH
GH_IRON: $GOPATH/src/github.com/iron-io
GO_PROJECT: ../go/src/github.com/iron-io/$CIRCLE_PROJECT_REPONAME
services:
- docker
checkout:
post:
- mkdir -p "$GH_IRON"
- cp -R "$CHECKOUT_DIR" "$GH_IRON/$CIRCLE_PROJECT_REPONAME"
dependencies:
pre:
- wget https://storage.googleapis.com/golang/go1.8.linux-amd64.tar.gz
- mkdir -p $HOME/golang
- tar -C $HOME/golang -xvzf go1.8.linux-amd64.tar.gz
- go get -u github.com/golang/dep/...
override:
- which go && go version
- make dep:
pwd: $GO_PROJECT
test:
override:
- make test:
pwd: $GO_PROJECT
- make test-tag TAG=integration:
pwd: $GO_PROJECT
- make test-tag TAG=server:
pwd: $GO_PROJECT
- make test-build-arm:
pwd: $GO_PROJECT
- go build:
pwd: $GO_PROJECT/examples/middleware
- go build:
pwd: $GO_PROJECT/examples/extensions
deployment:
release:
branch: master
owner: iron-io
commands:
- git config --global user.email "[email protected]"
- git config --global user.name "CircleCI"
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- cd $GO_PROJECT && ./release.sh