-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.yml
85 lines (84 loc) · 2.41 KB
/
config.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
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
74
75
76
77
78
79
80
81
82
83
84
85
# Golang CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-go/ for more details
version: 2
jobs:
"prepare-code":
docker:
- image: circleci/golang:1.9
working_directory: /go/src/github.com/hypnoglow/oas2
steps:
- checkout
- run: curl -sSL https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 -o /go/bin/dep
- run: chmod +x /go/bin/dep
- run: /go/bin/dep ensure -v
- persist_to_workspace:
root: /go/src/github.com/hypnoglow
paths:
- oas2
"test:1.9":
docker:
- image: circleci/golang:1.9
working_directory: /go/src/github.com/hypnoglow/oas2
steps:
- attach_workspace:
at: /go/src/github.com/hypnoglow
- run: go build ./...
- run: go test -v ./...
"test:1.10":
docker:
- image: circleci/golang:1.10
working_directory: /go/src/github.com/hypnoglow/oas2
steps:
- attach_workspace:
at: /go/src/github.com/hypnoglow
- run: go build ./...
- run: go test -v ./...
"lint":
docker:
- image: circleci/golang:1.9
working_directory: /go/src/github.com/hypnoglow/oas2
steps:
- attach_workspace:
at: /go/src/github.com/hypnoglow
# - run: apk add --no-cache git gcc musl-dev # required for metalinter, see github.com/alecthomas/gometalinter/issues/149
- run: go get -v -u github.com/alecthomas/gometalinter
- run: gometalinter --install --update
- run: gometalinter ./...
"codecov":
docker:
- image: circleci/golang:1.9
working_directory: /go/src/github.com/hypnoglow/oas2
steps:
- attach_workspace:
at: /go/src/github.com/hypnoglow
- run: ./.circleci/testcover.sh
- run: bash <(curl -s https://codecov.io/bash)
"e2e":
docker:
- image: circleci/golang:1.9
working_directory: /go/src/github.com/hypnoglow/oas2
steps:
- attach_workspace:
at: /go/src/github.com/hypnoglow
- run: go test -tags e2e ./e2e/...
workflows:
version: 2
prepare-and-test:
jobs:
- prepare-code
- "test:1.9":
requires:
- prepare-code
- "test:1.10":
requires:
- prepare-code
- "lint":
requires:
- prepare-code
- "codecov":
requires:
- prepare-code
- "e2e":
requires:
- prepare-code