File tree Expand file tree Collapse file tree 2 files changed +50
-44
lines changed Expand file tree Collapse file tree 2 files changed +50
-44
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ version : 2
3
+ executorType : docker
4
+ containerInfo :
5
+ - image : library/golang
6
+ environment :
7
+ AWS_ACCESS_KEY_ID : 1
8
+ AWS_SECRET_ACCESS_KEY : 1
9
+ GLIDE_VERSION : 0.12.3
10
+ jobs :
11
+ build :
12
+ workdir : " /go/src/github.com/zencoder/go-dash"
13
+ steps :
14
+ - checkout
15
+ - run :
16
+ name : Install Glide
17
+ command : |
18
+ set -eux
19
+ curl -sSLfO https://github.com/Masterminds/glide/releases/download/v${GLIDE_VERSION}/glide-v${GLIDE_VERSION}-linux-amd64.tar.gz
20
+ mkdir glide
21
+ tar -xzf glide-v${GLIDE_VERSION}-linux-amd64.tar.gz -C ./glide
22
+ cp ./glide/linux-amd64/glide /usr/local/bin/glide
23
+ rm -r glide glide-v${GLIDE_VERSION}-linux-amd64.tar.gz
24
+ - restore_cache :
25
+ key : glide-{{ checksum "glide.lock" }}
26
+ - run :
27
+ name : Download vendored Go dependencies
28
+ command : glide install
29
+ - save_cache :
30
+ key : glide-{{ checksum "glide.lock" }}
31
+ paths :
32
+ - vendor
33
+ - run :
34
+ name : Install required tooling
35
+ command : |
36
+ go get golang.org/x/tools/cmd/cover
37
+ go get github.com/mattn/goveralls
38
+ go get github.com/modocache/gover
39
+ - run :
40
+ name : Run unit tests
41
+ command : |
42
+ make test
43
+ - run :
44
+ name : Collect coverage reports
45
+ command : |
46
+ make cover
47
+ - run :
48
+ name : Submit coverage to coveralls.io
49
+ command : |
50
+ make coveralls
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments