-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af894d7
commit 46c1282
Showing
1 changed file
with
21 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |