2017-02-26 06:37:07 +08:00
|
|
|
box: golang:1.8.3
|
2015-08-17 06:00:38 +08:00
|
|
|
|
|
|
|
build:
|
|
|
|
steps:
|
|
|
|
- setup-go-workspace
|
|
|
|
- script:
|
2015-10-12 10:57:14 +08:00
|
|
|
name: tools
|
|
|
|
code: make tools
|
|
|
|
- script:
|
|
|
|
name: test
|
|
|
|
code: make test
|
|
|
|
- script:
|
|
|
|
name: cross compile
|
|
|
|
code: make cross_compile OUTPUT_DIR=$WERCKER_OUTPUT_DIR
|
|
|
|
- script:
|
|
|
|
name: store Makefile
|
|
|
|
code: cp Makefile $WERCKER_OUTPUT_DIR/
|
2015-08-17 06:00:38 +08:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
steps:
|
2015-10-12 10:57:14 +08:00
|
|
|
- script:
|
|
|
|
name: tools
|
|
|
|
code: make tools
|
2015-10-18 10:57:30 +08:00
|
|
|
- script:
|
|
|
|
name: targz
|
|
|
|
code: make targz OUTPUT_DIR=.
|
|
|
|
- script:
|
|
|
|
name: shasums
|
|
|
|
code: make shasums OUTPUT_DIR=.
|
2015-10-12 10:57:14 +08:00
|
|
|
- script:
|
|
|
|
name: release
|
2017-08-08 16:18:49 +08:00
|
|
|
code: make release OUTPUT_DIR=. GIT_COMMIT=$WERCKER_GIT_COMMIT
|