1
0
Fork 0
mirror of https://github.com/laravel-ls/uri synced 2026-06-16 01:54:57 +02:00

ci/circleci: add circleci config

This commit is contained in:
Koichi Shiraishi 2019-05-02 13:33:53 +09:00
parent bb28f6e096
commit acf7162031
No known key found for this signature in database
GPG key ID: A71DFD3B4DA7A79B

51
.circleci/config.yml Normal file
View file

@ -0,0 +1,51 @@
version: 2.1
orbs:
golang: cci-orb/golang@0.0.7
codecov: codecov/codecov@volatile
defaults: &defaults
working_directory: /go/src/github.com/go-language-server/uri
executor: golang/stretch
environment:
GO111MODULE: "on"
jobs:
test:
<<: *defaults
steps:
- checkout
- golang/gomod:
file: "go.mod"
- run:
name: Test and collect coverages
command: |
make coverage/ci
- codecov/upload:
file: "/tmp/ci/artifacts/coverage.out"
- store_artifacts:
path: /tmp/ci/artifacts
- store_artifacts:
path: /tmp/ci/artifacts
- store_test_results:
path: /tmp/ci/test-results
lint:
<<: *defaults
steps:
- checkout
- golang/gomod:
file: "go.mod"
- run:
name: Run lint for sources
command: |
make lint
workflows:
version: 2
workflows:
jobs:
- test:
context: org-global
- lint:
context: org-global