Switching to CircleCI

pull/187/head
Emir Pasic 2 years ago
parent d732d41ff9
commit c829b322e8

@ -18,14 +18,17 @@ jobs:
command: |
go version
- run:
name: Run tests and calculate coverage
name: Run tests
command: |
go test -v ./... | go tool test2json > $TEST_RESULTS/test2json-output.json
gotestsum --junitfile $TEST_RESULTS/gotestsum-report.xml
- run:
name: Calculate test coverage
command: |
mkdir -p $TEST_RESULTS
go test -coverprofile=c.out ./...
go test -coverprofile=c.out ./... > /dev/null
go tool cover -html=c.out -o coverage.html
mv coverage.html $TEST_RESULTS
go test -v ./... | go tool test2json > $TEST_RESULTS/test2json-output.json
gotestsum --junitfile $TEST_RESULTS/gotestsum-report.xml
- run:
name: Lint (golint)
command: |

Loading…
Cancel
Save