-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
arekkas
committed
Oct 25, 2017
1 parent
b9b83a3
commit 10b9aee
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
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,45 @@ | ||
# Golang CircleCI 2.0 configuration file | ||
# | ||
# Check https://circleci.com/docs/2.0/language-go/ for more details | ||
version: 2 | ||
jobs: | ||
test: | ||
docker: | ||
# specify the version | ||
- image: circleci/golang:1.9 | ||
working_directory: /go/src/github.com/ory/hydra | ||
steps: | ||
- checkout | ||
- setup_remote_docker | ||
- run: go get -u github.com/go-swagger/go-swagger/cmd/swagger github.com/bradfitz/goimports github.com/mattn/goveralls golang.org/x/tools/cmd/cover github.com/Masterminds/glide github.com/ory/go-acc | ||
- run: dep ensure | ||
- run: curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep | ||
- run: chmod +x $GOPATH/bin/dep | ||
- run: go install github.com/ory/hydra | ||
- run: ./scripts/test-format.sh | ||
- run: go test -race -short $(go list ./... | grep -v cmd) | ||
- run: ./scripts/run-genswag.sh | ||
build: | ||
docker: | ||
# specify the version | ||
- image: circleci/golang:1.9 | ||
working_directory: /go/src/github.com/ory/hydra | ||
steps: | ||
- run: ./scripts/run-deploy.sh | ||
|
||
workflows: | ||
version: 2 | ||
"test, build, push, and deploy": | ||
jobs: | ||
- test: | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- build: | ||
requires: | ||
- test | ||
filters: | ||
tags: | ||
only: /.*/ | ||
branches: | ||
ignore: /.*/ |