-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.shippable.yml
More file actions
73 lines (63 loc) · 1.2 KB
/
.shippable.yml
File metadata and controls
73 lines (63 loc) · 1.2 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
language: go
go:
- 1.8
#node_js:
# - #language version
#
#services:
# - #any supported service
#
env:
#matrix:
build:
# pre_ci:
#
# pre_ci_boot:
# image_name:
# image_tag:
# pull:
# options:
ci:
- TEST_RESULTS_DIR=./shippable/testresults
- COVERAGE_DIR=./shippable/codecoverage
- PATH=$PATH:$GOPATH/bin
- go get -u github.com/haya14busa/goverage
- go get -u github.com/jstemmer/go-junit-report
- go get -u github.com/axw/gocov/...
- go get -u github.com/AlekSi/gocov-xml
- mkdir -p $TEST_RESULTS_DIR
- mkdir -p $COVERAGE_DIR
- go get -v ./...
- go get -t -v ./...
- goverage -v -coverprofile=coverage.out ./... | tee test.out
- cat test.out | go-junit-report > $TEST_RESULTS_DIR/report.xml
- gocov convert coverage.out | gocov-xml > $COVERAGE_DIR/report.xml
# post_ci:
# - #command1
# - #command2
#
# on_success:
# - #command1
# - #command2
#
# on_failure:
# - #command1
# - #command2
#
# cache:
# cache_dir_list:
# - #dir1
# push:
#
#integrations:
# notifications:
# - integrationName:
# type:
# recipients:
# - #recp1
# - #recp2
#
# hub:
# - integrationName:
# type:
# agent_only: