-
Notifications
You must be signed in to change notification settings - Fork 31
/
wercker.yml
40 lines (40 loc) · 1.01 KB
/
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
37
38
39
40
box: golang
build:
steps:
- setup-go-workspace
- golint:
exclude: "vendor"
- script:
name: go get
code: |
go get -t ./...
- script:
name: test
code: |
make test
- script:
name: Publish Coveralls
code: goveralls -service="wercker.com" -coverprofile=profile.cov -repotoken $COVERALLS_TOKEN
- script:
name: build
code: |
make bin
- script:
name: package
code: |
apt-get update && apt-get install -y zip
make package
- script:
name: publish artifacts
code: |
if [ -d "$WERCKER_CACHE_DIR/dist" ]; then rm -rf $WERCKER_CACHE_DIR/dist; fi
cp -r dist $WERCKER_CACHE_DIR/dist
ls -larth $WERCKER_CACHE_DIR/dist
deploy:
steps:
- tcnksm/ghr:
token: $GITHUB_TOKEN
version: $RELEASE_VERSION
input: $WERCKER_CACHE_DIR/dist
replace: $RELEASE_IS_DRAFT
pre-release: $RELEASE_IS_DRAFT