forked from ric03uec/sample_ubuntu1204_go
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathshippable.yml
More file actions
44 lines (33 loc) · 1.13 KB
/
shippable.yml
File metadata and controls
44 lines (33 loc) · 1.13 KB
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
language: go
go:
- 1.2
- 1.3
env:
- CI_REPORT=shippable/testresults/junit.xml
build_image: shippableimages/ubuntu1204_go:0.0.2
#build_image: shipimg/ubuntu1204_go
install:
- go get -d -v ./... && go build -v ./...
before_install:
- source $HOME/.gvm/scripts/gvm;
- if [[ $SHIPPABLE_GO_VERSION == "tip" ]]; then gvm install tip; gvm use tip; fi
- if [[ $SHIPPABLE_GO_VERSION == *release* ]]; then gvm install release; gvm use release; fi
- if [[ $SHIPPABLE_GO_VERSION =~ [0-9].[0-9] ]]; then gvm install go$SHIPPABLE_GO_VERSION; gvm use go$SHIPPABLE_GO_VERSION; fi
- export GOPATH=$SHIPPABLE_GOPATH
- go get github.com/t-yuki/gocover-cobertura
- go get github.com/onsi/gomega
- go get github.com/onsi/ginkgo
- go get code.google.com/p/go.tools/cmd/cover
# Make folders for the reports
before_script:
- go version
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
archive: true
script:
- go test -coverprofile=coverage.txt -covermode count ./
- $GOPATH/bin/gocover-cobertura < coverage.txt > shippable/codecoverage/coverage.xml
after_success:
- echo "success"
after_failure:
- echo "failed"