-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CircleCI 1.0 has been deprecated and is no longer supported. This is basically a port of the existing circle.yml file, using the Circle Go language guide as a base (https://circleci.com/docs/2.0/language-go/)
- Loading branch information
Showing
2 changed files
with
41 additions
and
9 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,41 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/golang:1.11.4 | ||
working_directory: /go/src/github.com/citymapper/go-minipypi | ||
environment: | ||
TEST_RESULTS: &test_results /tmp/test-results | ||
OUTPUT_BIN: &output_bin /tmp/bin | ||
|
||
steps: | ||
- checkout | ||
- run: mkdir -p "$TEST_RESULTS" | ||
- run: mkdir -p "$OUTPUT_BIN" | ||
|
||
- run: go get github.com/jstemmer/go-junit-report | ||
|
||
- run: | ||
name: Run unit tests | ||
command: | | ||
trap "go-junit-report <${TEST_RESULTS}/go-test.out > ${TEST_RESULTS}/go-test-report.xml" EXIT | ||
go test -v 2>&1 | tee ${TEST_RESULTS}/go-test.out | ||
- run: go build | ||
|
||
- run: | ||
name: Create build artifact | ||
command: | | ||
gzip go-minipypi | ||
mv -f go-minipypi.gz "$OUTPUT_BIN/go-minipypi-`uname -s`-`uname -m`.gz" | ||
- store_artifacts: | ||
path: *test_results | ||
destination: raw-test-output | ||
|
||
- store_test_results: | ||
path: *test_results | ||
|
||
- store_artifacts: | ||
path: *output_bin | ||
destination: bin |
This file was deleted.
Oops, something went wrong.