Skip to content

Commit

Permalink
Merge pull request #48 from graphql-go/circleci
Browse files Browse the repository at this point in the history
ci: replaces travisci with circleci
  • Loading branch information
chris-ramon committed Sep 22, 2018
2 parents 59006c0 + 748d161 commit 7b60338
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 12 deletions.
40 changes: 40 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
defaults: &defaults
working_directory: /go/src/github.com/graphql-go/handler
steps:
- checkout
- run: go get -v -t -d ./...
- run: go test ./...

version: 2
jobs:
golang:1.8.7:
<<: *defaults
docker:
- image: circleci/golang:1.8.7
golang:1.9.7:
<<: *defaults
docker:
- image: circleci/golang:1.9.7
golang:latest:
<<: *defaults
docker:
- image: circleci/golang:latest
coveralls:
working_directory: /go/src/github.com/graphql-go/handler
docker:
- image: circleci/golang:latest
steps:
- checkout
- run: go get -v -t -d ./...
- run: go get github.com/mattn/goveralls
- run: go test -v -cover -race -coverprofile=coverage.out
- run: /go/bin/goveralls -coverprofile=coverage.out -service=circle-ci -repotoken $COVERALLS_TOKEN

workflows:
version: 2
build:
jobs:
- golang:1.8.7
- golang:1.9.7
- golang:latest
- coveralls
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

0 comments on commit 7b60338

Please sign in to comment.