Skip to content

Commit

Permalink
More jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
gbbr committed Jun 5, 2020
1 parent 147231a commit f7b161e
Showing 1 changed file with 37 additions and 23 deletions.
60 changes: 37 additions & 23 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,36 @@
version: 2

plain-go113: &plain-go113
working_directory: /home/circleci/dd-trace-go.v1
docker:
- image: circleci/golang:1.13
environment:
GOPATH: "/home/circleci/go"

jobs:
build:
docker:
- image: circleci/golang:1.12
environment:
GO111MODULE: "on"
GOPATH: "/home/circleci/go"
working_directory: /home/circleci/go/src/gopkg.in/DataDog/dd-trace-go.v1
working_directory: /home/circleci/dd-trace-go.v1
steps:
- checkout

- run:
name: build
command: |
go build ./ddtrace/...
- persist_to_workspace:
root: /home/circleci
paths:
- go
- dd-trace-go.v1

metadata:
<<: *plain-go113

steps:
- checkout

Expand All @@ -21,6 +44,12 @@ jobs:
command: |
go run checkcopyright.go
lint:
<<: *plain-go113

steps:
- checkout

- run:
name: gofmt
command: |
Expand All @@ -35,41 +64,24 @@ jobs:
curl -L https://git.io/vp6lP | sh # https://github.com/alecthomas/gometalinter#binary-releases
./bin/gometalinter --disable-all --vendor --deadline=60s --enable=golint ./...
- run:
name: build
command: |
go build ./ddtrace/...
- persist_to_workspace:
root: /home/circleci/go
paths:
- src
- pkg
- bin
test-core:
working_directory: /home/circleci/go/src/gopkg.in/DataDog/dd-trace-go.v1
docker:
- image: circleci/golang:1.13
environment:
GO111MODULE: "on"
GOPATH: "/home/circleci/go"
<<: *plain-go113

steps:
- attach_workspace:
at: /home/circleci/go
at: /home/circleci

- run:
name: Testing
command: go test -v -race `go list ./... | grep -v /contrib/`

test-contrib:
resource_class: xlarge
working_directory: /home/circleci/go/src/gopkg.in/DataDog/dd-trace-go.v1
working_directory: /home/circleci/dd-trace-go.v1
docker:
- image: circleci/golang:1.13
environment:
GO111MODULE: "on"
GOPATH: "/home/circleci/go"
- image: cassandra:3.7
- image: circleci/mysql:5.7
Expand Down Expand Up @@ -111,7 +123,7 @@ jobs:

steps:
- attach_workspace:
at: /home/circleci/go
at: /home/circleci

- restore_cache:
keys:
Expand Down Expand Up @@ -186,6 +198,8 @@ workflows:
build-and-test:
jobs:
- build
- metadata
- lint
- test-core:
requires:
- build
Expand Down

0 comments on commit f7b161e

Please sign in to comment.