Hermitise CI.

This commit is contained in:
Alec Thomas
2021-06-09 13:13:50 +10:00
parent 8cbf5a6c03
commit 33ce628ecd
+6 -17
View File
@@ -2,27 +2,16 @@ version: 2
jobs:
build:
docker:
- image: circleci/golang:1.13
working_directory: /go/src/github.com/alecthomas/kong
- image: cimg/base:2021.04
steps:
- checkout
- run:
name: Prepare
name: Test
command: |
go get -v github.com/jstemmer/go-junit-report
go get -v -t -d ./...
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s v1.23.7
mkdir ~/report
when: always
. ./bin/activate-hermit
go test -v ./...
- run:
name: Lint
command: |
./bin/golangci-lint run
- run:
name: Test
command: |
go test -v ./... 2>&1 | tee report.txt && go-junit-report < report.txt > ~/report/junit.xml
- store_test_results:
path: ~/report
. ./bin/activate-hermit
golangci-lint run