forked from x-motemen/gore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
36 lines (33 loc) · 867 Bytes
/
wercker.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
box: golang
build:
steps:
- setup-go-workspace
- script:
name: go get
code: |
go get -t ./...
- script:
name: go build
code: |
go build ./...
- script:
name: go test
code: |
go test ./...
deploy:
steps:
- script:
name: install jq
code: |
curl -L http://stedolan.github.io/jq/download/linux64/jq -o /usr/local/bin/jq
chmod +x /usr/local/bin/jq
- motemen/gobump-github-pull-request:
github_token: $GITHUB_TOKEN
label_pattern_minor: ^feature$
- script:
name: tag version
code: |
if [ -n "$GOBUMP_NEW_VERSION" ]; then
git tag "v$GOBUMP_NEW_VERSION"
git push --tags "https://$GITHUB_TOKEN@github.com/$WERCKER_GIT_OWNER/$WERCKER_GIT_REPOSITORY"
fi