Skip to content

Commit

Permalink
Add circleci config
Browse files Browse the repository at this point in the history
  • Loading branch information
stein committed Jun 19, 2018
1 parent 08083ee commit 4b53236
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .circleci/config.yml
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

0 comments on commit 4b53236

Please sign in to comment.