Skip to content

Commit

Permalink
ci: move to circle-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
arekkas committed Oct 25, 2017
1 parent b9b83a3 commit 10b9aee
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
File renamed without changes.
45 changes: 45 additions & 0 deletions .circle/config.yml
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: /.*/

0 comments on commit 10b9aee

Please sign in to comment.