Skip to content

Commit

Permalink
chore: Add circleci configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyno-zeta committed Sep 6, 2020
1 parent 31e40d0 commit 18fdef0
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
version: 2
jobs:
# Test validation for semantic-release
semantic-release:
docker:
- image: circleci/node:12
steps:
- checkout
- run: sudo npm install -g [email protected] @semantic-release/[email protected]
- run: semantic-release --ci --dry-run
lint:
docker:
- image: circleci/golang:1.15
working_directory: /go/src/github.com/oxyno-zeta/gomock-extra-matcher
steps:
- checkout
- run: make code/lint
- save_cache:
key: go-mod-{{ checksum "go.mod" }}
paths:
- "/go/pkg/"
test:
docker:
- image: circleci/golang:1.15
working_directory: /go/src/github.com/oxyno-zeta/gomock-extra-matcher
steps:
- checkout
- restore_cache:
keys:
- go-mod-{{ checksum "go.mod" }}
- run: make test/unit
- run: make test/coverage
- run: mv coverage.html /tmp/artifacts
- store_artifacts:
path: /tmp/artifacts
- run: go get -u github.com/mattn/goveralls
- run: |-
export PATH=$GOBIN:$PATH
goveralls -coverprofile=c.out -service=circle-ci -repotoken=$COVERALLS_TOKEN
workflows:
version: 2
project:
jobs:
- semantic-release
- lint
- test

0 comments on commit 18fdef0

Please sign in to comment.