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: jobs:
build: build:
docker: docker:
- image: circleci/golang:1.13 - image: cimg/base:2021.04
working_directory: /go/src/github.com/alecthomas/kong
steps: steps:
- checkout - checkout
- run: - run:
name: Prepare name: Test
command: | command: |
go get -v github.com/jstemmer/go-junit-report . ./bin/activate-hermit
go get -v -t -d ./... go test -v ./...
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s v1.23.7
mkdir ~/report
when: always
- run: - run:
name: Lint name: Lint
command: | command: |
./bin/golangci-lint run . ./bin/activate-hermit
- run: golangci-lint 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