-
Notifications
You must be signed in to change notification settings - Fork 5
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
stein
committed
Jun 19, 2018
1 parent
08083ee
commit 4b53236
Showing
1 changed file
with
39 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/golang:1.10.3 | ||
working_directory: /go/src/github.com/steinfletcher/github-org-clone | ||
|
||
environment: | ||
TEST_RESULTS: /tmp/test-results | ||
|
||
steps: | ||
- checkout | ||
- run: mkdir -p $TEST_RESULTS | ||
|
||
- restore_cache: | ||
keys: | ||
- v1-pkg-cache | ||
|
||
- run: curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh | ||
- run: go get github.com/jstemmer/go-junit-report | ||
- run: dep ensure | ||
- 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 | ||
- run: make | ||
|
||
- save_cache: | ||
key: v1-pkg-cache | ||
paths: | ||
- "/go/pkg" | ||
|
||
- store_artifacts: | ||
path: /tmp/test-results | ||
destination: raw-test-output | ||
|
||
- store_test_results: | ||
path: /tmp/test-results |