Skip to content

Commit

Permalink
Improved circleci file
Browse files Browse the repository at this point in the history
Signed-off-by: Sotirios Mantziaris <smantziaris@gmail.com>
  • Loading branch information
mantzas committed Nov 17, 2019
1 parent 43e151f commit 043fce4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,21 @@ version: 2.1
jobs:
build:
docker:
- image: circleci/golang:1.12
- image: circleci/golang:1.13

environment:
TEST_RESULTS: /tmp/test-results

steps:
- checkout

- run:
name: Running linter
command: |
sudo chown circleci:circleci /go/bin
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.18.0
make lint
- run:
name: Running with test coverage and send to codecov
command: |
Expand All @@ -21,13 +28,6 @@ jobs:
go test ./... -cover -race -mod=vendor -coverprofile=coverage.txt -covermode=atomic | tee ${TEST_RESULTS}/go-test.out
bash <(curl -s https://codecov.io/bash)
- run:
name: Running linter
command: |
sudo chown circleci:circleci /go/bin
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.18.0
make lint
- store_artifacts:
path: /tmp/test-results
destination: raw-test-output
Expand Down

0 comments on commit 043fce4

Please sign in to comment.