Files
kong/.circleci/config.yml
T
Alec Thomas e9d88d6528 Implement flag "resolvers". (#24)
* Propagate errors.
* Use junit test output.
* Expand role of DecodeContext to include Scanner.
* Inject resolved flags as Path elements in the Context.
  This allows all existing logic to apply seamlessly: hooks, required
flags, etc.
* Clarify that hooks can be called multiple times.
2018-06-12 07:20:55 +10:00

24 lines
572 B
YAML

version: 2
jobs:
build:
docker:
- image: circleci/golang:1.10
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 ./...
mkdir ~/report
when: always
- 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