This repository has been archived by the owner on Jun 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decom authors and update app/CI (#28)
* 🔧 Remove config for authors workflow * 🚨 S/sirupsen!!! * 👷 Convert to CircleCI 2 * 👷 Convert to use dep instead of govendor * Added docker build to CircleCI
- Loading branch information
David Smith
committed
Apr 3, 2018
1 parent
e216ffe
commit 3d0768a
Showing
9 changed files
with
240 additions
and
147 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,61 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/golang:1.10 | ||
working_directory: /go/src/github.com/Financial-Times/concept-ingester | ||
environment: | ||
CIRCLE_TEST_REPORTS: /tmp/test-reports | ||
CIRCLE_ARTIFACTS: /tmp/artifacts | ||
steps: | ||
- checkout | ||
- run: | ||
name: Create folders | ||
command: | | ||
mkdir -p $CIRCLE_TEST_REPORTS/golang | ||
mkdir -p $CIRCLE_ARTIFACTS | ||
- run: | ||
name: Download dependancies | ||
command: | | ||
go get -u github.com/golang/dep/cmd/dep | ||
go get -u github.com/jstemmer/go-junit-report | ||
go get -u github.com/mattn/goveralls | ||
- run: | ||
name: Download vendored dependancies | ||
command: | | ||
dep ensure | ||
- run: | ||
name: Build app | ||
command: | | ||
go build -v | ||
- run: | ||
name: Run tests and create coverage report | ||
command: | | ||
go test -race -cover -coverprofile=$CIRCLE_ARTIFACTS/coverage.out | go-junit-report > $CIRCLE_TEST_REPORTS/golang/junit.xml | ||
- run: | ||
name: Upload coverage report | ||
command: | | ||
goveralls -coverprofile=$CIRCLE_ARTIFACTS/coverage.out -service=circle-ci -repotoken=$COVERALLS_TOKEN | ||
- store_test_results: | ||
path: /tmp/test-reports | ||
- store_artifacts: | ||
path: /tmp/artifacts | ||
destination: build | ||
docker_build: | ||
working_directory: /concept-ingester | ||
docker: | ||
- image: docker:18.03 | ||
steps: | ||
- checkout | ||
- setup_docker_engine | ||
- run: | ||
name: Build Dockerfile | ||
command: docker build . | ||
workflows: | ||
version: 2 | ||
tests_and_docker: | ||
jobs: | ||
- build | ||
- docker_build: | ||
requires: | ||
- build |
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
# Folders | ||
_obj | ||
_test | ||
vendor/*/ | ||
vendor/ | ||
|
||
# Architecture specific extensions/prefixes | ||
*.[568vq] | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,54 @@ | ||
# Gopkg.toml example | ||
# | ||
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md | ||
# for detailed Gopkg.toml documentation. | ||
# | ||
# required = ["github.com/user/thing/cmd/thing"] | ||
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] | ||
# | ||
# [[constraint]] | ||
# name = "github.com/user/project" | ||
# version = "1.0.0" | ||
# | ||
# [[constraint]] | ||
# name = "github.com/user/project2" | ||
# branch = "dev" | ||
# source = "github.com/myfork/project2" | ||
# | ||
# [[override]] | ||
# name = "github.com/x/y" | ||
# version = "2.4.0" | ||
# | ||
# [prune] | ||
# non-go = false | ||
# go-tests = true | ||
# unused-packages = true | ||
|
||
|
||
[[constraint]] | ||
name = "github.com/Financial-Times/go-fthealth" | ||
version = "0.4.0" | ||
|
||
[[constraint]] | ||
name = "github.com/Financial-Times/http-handlers-go" | ||
version = "0.1.0" | ||
|
||
[[constraint]] | ||
name = "github.com/Financial-Times/message-queue-gonsumer" | ||
version = "0.4.0" | ||
|
||
[[constraint]] | ||
name = "github.com/Financial-Times/service-status-go" | ||
version = "0.1.0" | ||
|
||
[[constraint]] | ||
branch = "master" | ||
name = "github.com/cyberdelia/go-metrics-graphite" | ||
|
||
[[constraint]] | ||
name = "github.com/sirupsen/logrus" | ||
version = "1.0.5" | ||
|
||
[prune] | ||
go-tests = true | ||
unused-packages = true |
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.