Skip to content

Commit bc91fb6

Browse files
committed
ci/circleci: add circleci config
1 parent 45faa7e commit bc91fb6

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.circleci/config.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
version: 2.1
2+
3+
orbs:
4+
golang: cci-orb/[email protected]
5+
6+
defaults: &defaults
7+
working_directory: /go/src/github.com/go-language-server/jsonrpc2
8+
executor: golang/stretch
9+
environment:
10+
GO111MODULE: "on"
11+
shell: /bin/bash -euo pipefail
12+
13+
jobs:
14+
test:
15+
<<: *defaults
16+
steps:
17+
- checkout
18+
- golang/gomod
19+
- run:
20+
name: Test and collect coverages
21+
command: |
22+
make coverage/ci
23+
- run:
24+
name: Upload coverages to codecov
25+
command: |
26+
bash <(curl -s https://codecov.io/bash) -f /tmp/ci/artifacts/coverage.out
27+
- store_artifacts:
28+
path: /tmp/ci/artifacts
29+
- store_artifacts:
30+
path: /tmp/ci/artifacts
31+
- store_test_results:
32+
path: /tmp/ci/test-results
33+
34+
lint:
35+
<<: *defaults
36+
steps:
37+
- checkout
38+
- golang/gomod
39+
- run:
40+
name: Run lint for sources
41+
command: |
42+
make lint
43+
44+
workflows:
45+
version: 2
46+
workflows:
47+
jobs:
48+
- test:
49+
context: org-global
50+
- lint:
51+
context: org-global

0 commit comments

Comments
 (0)