Files
kong/.circleci/config.yml
T
Alec Thomas b8c82fea7c Allow binds to be provided by a function.
This is useful for situations where the initialisation of some object
should be deferred, eg. when there are distinct "setup" and "use" phases
to a tools lifecycle.
2020-03-03 14:07:40 +11:00

29 lines
773 B
YAML

version: 2
jobs:
build:
docker:
- image: circleci/golang:1.13
working_directory: /go/src/github.com/alecthomas/kong
steps:
- checkout
- run:
name: Prepare
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
- 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