Skip to content

Commit

Permalink
Update CircleCI config
Browse files Browse the repository at this point in the history
  • Loading branch information
samuell committed Aug 28, 2021
1 parent a144357 commit 37d36c5
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,24 @@ version: 2
jobs:
build:
docker:
- image: circleci/golang:1.12
working_directory: /go/src/github.com/scipipe/scipipe
- image: cimg/go:1.17
environment: # environment variables for the build itself
TEST_RESULTS: /tmp/test-results # path to where test results will be saved
steps:
- checkout
- run: go get github.com/jstemmer/go-junit-report
- run: go get github.com/axw/gocov/gocov
- run: go get github.com/AlekSi/gocov-xml
- run: go install github.com/jstemmer/go-junit-report@latest
- run: go install github.com/axw/gocov/gocov@latest
- run: go install github.com/AlekSi/gocov-xml@latest
- run:
name: Run unit tests
command: |
mkdir -p $TEST_RESULTS/go-junit &&
go test -v -race ./... | go-junit-report > $TEST_RESULTS/go-junit/report.xml &&
go test -v -race ./... | go-junit-report > $TEST_RESULTS/go-junit/report.xml
- store_test_results:
path: $TEST_RESULTS
- run:
name: Run test coverage and upload to CodeCov
command: |
bash testcov.sh &&
gocov convert cover.out | gocov-xml > coverage.xml &&
bash <(curl -s https://codecov.io/bash)

0 comments on commit 37d36c5

Please sign in to comment.