Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

Commit

Permalink
Merge pull request #9 from Financial-Times/circleci-migration
Browse files Browse the repository at this point in the history
CircleCI 2.0 migration
  • Loading branch information
JPD committed May 4, 2018
2 parents 148a119 + 8d68a3a commit 7636860
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 30 deletions.
58 changes: 58 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
version: 2
jobs:
build:
working_directory: /go/src/github.com/Financial-Times/annotations-mapper
docker:
- image: golang:1.8.3
environment:
GOPATH: /go
CIRCLE_TEST_REPORTS: /tmp/test-results
CIRCLE_COVERAGE_REPORT: /tmp/coverage-results
steps:
- checkout
- run:
name: External Dependencies
command: |
go get -u github.com/mattn/goveralls
go get -u github.com/jstemmer/go-junit-report
go get -u github.com/kardianos/govendor
go get -u github.com/haya14busa/goverage
- run:
name: Test Results
command: |
mkdir -p ${CIRCLE_TEST_REPORTS}
mkdir -p ${CIRCLE_COVERAGE_REPORT}
- run:
name: Govendor Sync
command: govendor sync -v
- run:
name: Go Build
command: go build -v
- run:
name: Run Tests
command: |
govendor test -race -v +local | /go/bin/go-junit-report > ${CIRCLE_TEST_REPORTS}/main.xml
goverage -covermode=atomic -race -coverprofile=${CIRCLE_COVERAGE_REPORT}/coverage.out ./...
- run:
name: Upload Coverage
command: /go/bin/goveralls -coverprofile=${CIRCLE_COVERAGE_REPORT}/coverage.out -service=circle-ci -repotoken=$COVERALLS_TOKEN
- store_test_results:
path: /tmp/test-results
dockerfile:
working_directory: /annotations-mapper
docker:
- image: docker:18.03
steps:
- checkout
- setup_docker_engine
- run:
name: Build Dockerfile
command: docker build .
workflows:
version: 2
test-and-build-docker:
jobs:
- build
- dockerfile:
requires:
- build
30 changes: 0 additions & 30 deletions circle.yml

This file was deleted.

0 comments on commit 7636860

Please sign in to comment.