-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathwercker.yml
30 lines (30 loc) · 1010 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
box: tcnksm/gox
build:
steps:
- setup-go-workspace
- script:
name: go get
code: |
go version
go get -t ./...
- script:
name: go test and cover
code: |
go get github.com/mattn/goveralls
echo "mode: count" > profile.cov
for d in $(git ls-files | grep '_test.go$' | sed -E 's,/?[^/]*$,,' | uniq); do go test -covermode=count -coverprofile=$d/profile.tmp ./$d && tail -n +2 $d/profile.tmp >> profile.cov; done
goveralls -coverprofile=profile.cov -service=wercker.com -repotoken $COVERALLS_TOKEN
- script:
name: gox
code: |
gox -tags=monolithic -os="linux darwin" -arch="amd64" -output "${WERCKER_OUTPUT_DIR}/pkg/fluxion_{{.OS}}_{{.Arch}}/{{.Dir}}"
- tcnksm/zip:
input: $WERCKER_OUTPUT_DIR/pkg
output: $WERCKER_OUTPUT_DIR/dist
deploy:
steps:
- tcnksm/ghr:
token: $GITHUB_TOKEN
input: dist
pre_release: true
replace: true