-
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.
* Removed path prefix for gtg endpoint, logged input params and updated documentation * Fixed log * Added more tests * Moved gtg handler a few lines up in the file to emphasize the fact that it uses the main router * Decreased timeout value for httpClient * Added parallel severity check * Fixed pod severity checking, decreased httpClient timeout * Fixed tests * Fixed tests and code format * Updated readme * Fixed remove ack endpoint * Moved cache-control header to services healthcheck handler * Added all cache control headers * Removed cache control headers from services health endpoint * Fixed circle CI
- Loading branch information
1 parent
12b3037
commit 29636bb
Showing
2 changed files
with
15 additions
and
13 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 |
---|---|---|
@@ -1,31 +1,30 @@ | ||
machine: | ||
environment: | ||
GOPATH: "${HOME}/.go_workspace:/usr/local/go_workspace:${HOME}/.go_project" | ||
GO_PROJECT_PATH: "${HOME}/.go_project/src/github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}" | ||
PROJECT_GOPATH: "${HOME}/.go_project" | ||
PROJECT_PARENT_PATH: "${PROJECT_GOPATH}/src/github.com/${CIRCLE_PROJECT_USERNAME}" | ||
PROJECT_PATH: "${PROJECT_PARENT_PATH}/${CIRCLE_PROJECT_REPONAME}" | ||
GOPATH: "${HOME}/.go_workspace:${PROJECT_GOPATH}" | ||
|
||
checkout: | ||
post: | ||
- mkdir -p $(dirname ${GO_PROJECT_PATH}) | ||
- ln -fs $HOME/$CIRCLE_PROJECT_REPONAME $GO_PROJECT_PATH | ||
- mkdir -p "${PROJECT_PARENT_PATH}" | ||
- rsync -avC "${HOME}/${CIRCLE_PROJECT_REPONAME}/" "${PROJECT_PATH}" | ||
|
||
dependencies: | ||
pre: | ||
- go get -u github.com/kardianos/govendor | ||
override: | ||
- cd $GO_PROJECT_PATH && govendor sync | ||
- cd $GO_PROJECT_PATH && go build -v | ||
- cd $PROJECT_PATH && govendor sync | ||
- cd $PROJECT_PATH && go build -v | ||
|
||
test: | ||
pre: | ||
- go get -u github.com/jstemmer/go-junit-report | ||
- go get -u github.com/mattn/goveralls | ||
- cd $PROJECT_PATH && wget https://raw.githubusercontent.com/Financial-Times/cookiecutter-upp-golang/master/coverage.sh && chmod +x coverage.sh | ||
override: | ||
- mkdir -p $CIRCLE_TEST_REPORTS/golang | ||
- cd $GO_PROJECT_PATH && govendor test -race -v +local | go-junit-report > $CIRCLE_TEST_REPORTS/golang/junit.xml | ||
- cd $GO_PROJECT_PATH && govendor test -v -cover -race -coverprofile=$CIRCLE_ARTIFACTS/coverage.out +local | ||
- cd $CIRCLE_ARTIFACTS && sed -i '1d' *.out | ||
- | | ||
echo "mode: atomic" > $CIRCLE_ARTIFACTS/overall-coverage.result | ||
- cd $CIRCLE_ARTIFACTS && cat *.out >> overall-coverage.result | ||
- cd $PROJECT_PATH && govendor test -race -v +local | go-junit-report > $CIRCLE_TEST_REPORTS/golang/junit.xml | ||
- cd $PROJECT_PATH && ./coverage.sh | ||
post: | ||
- goveralls -coverprofile=$CIRCLE_ARTIFACTS/overall-coverage.result -service=circle-ci -repotoken=$COVERALLS_TOKEN | ||
- goveralls -coverprofile=$CIRCLE_ARTIFACTS/coverage.out -service=circle-ci -repotoken=$COVERALLS_TOKEN |
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