Skip to content

Commit

Permalink
Update CircleCI configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
nickschuch committed Jul 18, 2019
1 parent af894d7 commit 46c1282
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
version: 2

workflows:
version: 2
test:
jobs:
- lint
- unit

jobs:
build:
lint:
docker:
- image: circleci/golang:1.11
- image: golang:1.12
working_directory: /go/src/github.com/previousnext/terraform-provider-k8s
environment:
TEST_RESULTS: /tmp/test-results
steps:
- checkout
- run: mkdir -p $TEST_RESULTS
- run: go get github.com/jstemmer/go-junit-report
- run: go get github.com/golang/lint/golint
- run:
name: Run linting
command: make lint
- run:
name: Run unit tests
command: |
trap "go-junit-report <${TEST_RESULTS}/go-test.out > ${TEST_RESULTS}/go-test-report.xml" EXIT
make test | tee ${TEST_RESULTS}/go-test.out
- store_artifacts:
path: /tmp/test-results
destination: raw-test-output
- store_test_results:
path: /tmp/test-results
- run: |
go get golang.org/x/lint/golint
make lint
unit:
docker:
- image: golang:1.12
working_directory: /go/src/github.com/previousnext/terraform-provider-k8s
steps:
- checkout
- run: make test

0 comments on commit 46c1282

Please sign in to comment.