-
Notifications
You must be signed in to change notification settings - Fork 25
/
circle.yml
37 lines (33 loc) · 1.06 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
machine:
environment:
IMPORT_PATH: "github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME"
general:
build_dir: ../.go_workspace/src/github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}
dependencies:
pre:
- go version
- rm -rf ~/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
- mkdir -p ~/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME/
- ln -s ~/$CIRCLE_PROJECT_REPONAME ~/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
override:
- make deps
post:
- git config user.name "Circle CI Build Bot"
- git config user.email "[email protected]"
- git remote -v
- git fetch --tags
- git describe --abbrev=0 --tags
test:
override:
- make test
- make build
- mkdir $CIRCLE_ARTIFACTS/test_build
- mv build/* $CIRCLE_ARTIFACTS/test_build
deployment:
release:
tag: /v.*/
owner: janeczku
commands:
- echo `git name-rev --tags --name-only $(git rev-parse HEAD)`
- echo tag ${CIRCLE_TAG}
- make release