forked from krujos/usagereport-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
47 lines (42 loc) · 1.32 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
39
40
41
42
43
44
45
46
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/krujos/usagereport-plugin
- script:
name: Get dependencies
code: |-
go get github.com/tools/godep
go get github.com/onsi/ginkgo
go get github.com/onsi/gomega
go install github.com/onsi/ginkgo/ginkgo
# Build the project do we need this?
- script:
name: godep go build
code: |
godep go build ./...
# Test the project
- script:
name: test
code: |
godep go test ./...
# Integration test
- script:
name: Integration test
code: |
godep go build
wget https://cli.run.pivotal.io/stable\?release\=linux64-binary\&source\=github -O cli.tgz
tar -xvf cli.tgz
chmod +x ./cf
./cf api api.run.pivotal.io
./cf auth $cfuser "$cfpass"
./cf target -s $cfspace -o $cforg
ls -al
./cf install-plugin -f usagereport-plugin
./cf usage-report