-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathshippable.yml
More file actions
47 lines (37 loc) · 973 Bytes
/
shippable.yml
File metadata and controls
47 lines (37 loc) · 973 Bytes
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
47
language: go
go:
- 1.3
# - release
- 1.4
env:
- FOO=foo BAR=bar
- test1=aa
# - CI_REPORT=shippable/testresults/junit.xml
matrix:
allow_failures:
- go: "1.4"
exclude:
- go: "1.3"
include:
- go: "1.2"
env: var1=test
install:
- go get code.google.com/p/go.tools/cmd/cover
# Make folders for the reports
before_script:
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
archive: true
script:
- echo $test
- export GOPATH=$PWD
- export PATH=$PATH:$GOPATH/bin
- go get github.com/t-yuki/gocover-cobertura
- go get github.com/onsi/gomega
- go get github.com/onsi/ginkgo
- go install github.com/OneRedOak/sample
- go test -coverprofile=coverage.txt -covermode count github.com/OneRedOak/sample
- gocover-cobertura < coverage.txt > coverage.xml
after_script:
- mv $PWD/src/github.com/OneRedOak/sample/junit.xml $PWD/shippable/testresults/
- mv $PWD/coverage.xml $PWD/shippable/codecoverage/