Skip to content

Commit

Permalink
Merge pull request #15 from citymapper/upgrade_to_circleci_2_0
Browse files Browse the repository at this point in the history
Update to CircleCI 2.0
  • Loading branch information
slai authored Jan 2, 2019
2 parents 96a3199 + 7b1d41a commit 2214794
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 9 deletions.
41 changes: 41 additions & 0 deletions .circleci/config.yml
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: /home/circleci/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
9 changes: 0 additions & 9 deletions circle.yml

This file was deleted.

0 comments on commit 2214794

Please sign in to comment.