forked from oracle/cluster-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwercker.yml
37 lines (33 loc) · 1.03 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
box: golang
build:
# The steps that will be executed on build
# Steps make up the actions in your pipeline
# Read more about steps on our dev center:
# http://devcenter.wercker.com/docs/steps/index.html
steps:
# Sets the go workspace and places you package
# at the right place in the workspace tree
- wercker/setup-go-workspace:
package-dir: github.com/kubernetes-incubator/cluster-manager
gopath: $GOPATH
# Build the project
- script:
name: go build
code: |
make clean check build-local
# what's in WERCKER_OUTPUT_DIR now?
mv bin $WERCKER_OUTPUT_DIR
cd $WERCKER_OUTPUT_DIR/bin/linux
ls -la
# code coverage
- script:
name: code coverage
code: |
chmod +x tools/coverage.sh
make vendor
make coverhtml
after-steps:
- internal/docker-push:
tag: $WERCKER_GIT_BRANCH-$WERCKER_GIT_COMMIT
working-dir: /pipeline/source
entrypoint: /cluster-manager