Skip to content

Commit 255a3a6

Browse files
authored
Merge pull request oracle#5 from jim-gish-at-oracle-com/master
Added wercker.yml to enable builds on wercker
2 parents a5cb7e5 + e8fe8e9 commit 255a3a6

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[![wercker status](https://app.wercker.com/status/65a1ed067b4b857b631988e0356cde86/s/master "wercker status")](https://app.wercker.com/project/byKey/65a1ed067b4b857b631988e0356cde86)
12
[![Go Report Card](https://goreportcard.com/badge/github.com/oracle/navarkos?)](https://goreportcard.com/report/github.com/oracle/navarkos)
23

34
# Navarkos

wercker.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
box: golang
2+
3+
build:
4+
# The steps that will be executed on build
5+
# Steps make up the actions in your pipeline
6+
# Read more about steps on our dev center:
7+
# http://devcenter.wercker.com/docs/steps/index.html
8+
steps:
9+
# Sets the go workspace and places you package
10+
# at the right place in the workspace tree
11+
- wercker/setup-go-workspace:
12+
package-dir: github.com/kubernetes-incubator/navarkos
13+
gopath: $GOPATH
14+
15+
# Build the project
16+
- script:
17+
name: go build
18+
code: |
19+
make check build-local
20+
# what's in WERCKER_OUTPUT_DIR now?
21+
mv bin $WERCKER_OUTPUT_DIR
22+
cd $WERCKER_OUTPUT_DIR/bin/linux
23+
ls -la
24+
25+
# code coverage
26+
- script:
27+
name: code coverage
28+
code: |
29+
chmod +x tools/coverage.sh
30+
make coverhtml
31+
32+
after-steps:
33+
- internal/docker-push:
34+
tag: $WERCKER_GIT_BRANCH-$WERCKER_GIT_COMMIT
35+
working-dir: /pipeline/source
36+
entrypoint: /navarkos

0 commit comments

Comments
 (0)