forked from rethinkdb/rethinkdb-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
38 lines (37 loc) · 1.17 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
38
box: wercker/golang
# Services
services:
- dancannon/[email protected]
# Build definition
build:
# The steps that will be executed on build
steps:
# Sets the go workspace and places you package
# at the right place in the workspace tree
- pjvds/setup-go-workspace
- script:
name: Populate cache
code: |-
if test -d "$WERCKER_CACHE_DIR/go-pkg-cache"; then rsync -avzv --exclude "$WERCKER_SOURCE_DIR" "$WERCKER_CACHE_DIR/go-pkg-cache/" "$GOPATH/" ; fi
# Gets the dependencies
- script:
name: get dependencies
code: |
cd $WERCKER_SOURCE_DIR
go version
go get ./...
# Build the project
- script:
name: build
code: |
go build ./...
# Test the project
- script:
name: Test
code: |-
go get -u gopkg.in/check.v1
go test ./... -short
- script:
name: Store cache
code: |-
rsync -avzv --exclude "$WERCKER_SOURCE_DIR" "$GOPATH/" "$WERCKER_CACHE_DIR/go-pkg-cache/"