From 2d30495c27b0e3382489d4a2d12ec285672ce61c Mon Sep 17 00:00:00 2001 From: Tim Gross Date: Tue, 15 Nov 2016 15:25:12 -0500 Subject: [PATCH] Add support for Wercker CI --- README.md | 2 ++ wercker.yml | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 wercker.yml diff --git a/README.md b/README.md index df2d76d..82b1f88 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ gocommon Common Go library for Joyent's Triton and Manta. +[![wercker status](https://app.wercker.com/status/2f63bf7f68bfdd46b979abad19c0bee0/s/master "wercker status")](https://app.wercker.com/project/byKey/2f63bf7f68bfdd46b979abad19c0bee0) + ## Installation Use `go-get` to install gocommon. diff --git a/wercker.yml b/wercker.yml new file mode 100644 index 0000000..cfbc0f7 --- /dev/null +++ b/wercker.yml @@ -0,0 +1,35 @@ +box: golang + +build: + steps: + # Sets the go workspace and places you package + # at the right place in the workspace tree + - setup-go-workspace: + package-dir: github.com/joyent/gocommon + + # Gets the dependencies + - script: + name: go get + code: | + go get -v -t ./... + + # Build the project + - script: + name: go build + code: | + go build ./... + + - script: + name: make a new key for testing + code: | + ssh-keygen -b 2048 \ + -C "Testing Key" \ + -f /root/.ssh/id_rsa \ + -t rsa \ + -P "" + + # Test the project + - script: + name: go test + code: | + go test ./...