forked from javacode123/graphql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
53 lines (49 loc) · 1.19 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
test_with_go_modules: &test_with_go_modules
steps:
- checkout
- run: go test ./...
- run: go vet ./...
test_without_go_modules: &test_without_go_modules
working_directory: /go/src/github.com/graphql-go/graphql
steps:
- checkout
- run: go get -v -t -d ./...
- run: go test ./...
- run: go vet ./...
defaults: &defaults
<<: *test_with_go_modules
version: 2
jobs:
golang:1.8.7:
<<: *test_without_go_modules
docker:
- image: circleci/golang:1.8.7
golang:1.9.7:
<<: *test_without_go_modules
docker:
- image: circleci/golang:1.9.7
golang:1.11:
<<: *defaults
docker:
- image: circleci/golang:1.11
golang:latest:
<<: *defaults
docker:
- image: circleci/golang:latest
coveralls:
docker:
- image: circleci/golang:latest
steps:
- checkout
- 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:1.11
- golang:latest
- coveralls