-
Notifications
You must be signed in to change notification settings - Fork 1
/
circle.yml
33 lines (29 loc) · 835 Bytes
/
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
machine:
post:
- mkdir -p download
- test -e download/$GODIST || curl -o download/$GODIST https://storage.googleapis.com/golang/$GODIST
- sudo rm -rf /usr/local/go
- sudo tar -C /usr/local -xzf download/$GODIST
environment:
GODIST: "go1.7.linux-amd64.tar.gz"
GOPATH: "$HOME/go"
PATH: "$PATH:$GOPATH/bin"
WORK: "$GOPATH/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/"
services:
- docker
dependencies:
override:
- mkdir -p "$WORK"
- rsync -az --delete ./ "$WORK"
test:
pre:
- cd "$WORK" && make check
override:
- cd "$WORK" && make test
# GITHUB_TOKEN env var must be setup in circleci console
deployment:
release:
tag: /v.*/
commands:
- docker login -e="." -u="$DOCKER_USER" -p="$DOCKER_PASS" quay.io
- cd "$WORK" && make push