Этот коммит содержится в:
Fredrik Lönnblad 2020-02-29 17:52:13 -03:00
родитель 310ce24fb0
коммит 3a87543b82

Просмотреть файл

@ -15,10 +15,15 @@ executors:
- image: circleci/golang:1.14.0 - image: circleci/golang:1.14.0
commands: commands:
install:
description: "Install dependencies"
steps:
- run: GO111MODULE=on go mod vendor -v
vet: vet:
description: "Run go vet" description: "Run go vet"
steps: steps:
- run: go vet ./... - run: go vet github.com/cucumber/godog
- run: go vet github.com/cucumber/godog/colors
fmt: fmt:
description: "Run go fmt" description: "Run go fmt"
steps: steps:
@ -27,7 +32,13 @@ commands:
description: "Run golint" description: "Run golint"
steps: steps:
- run: go get -u golang.org/x/lint/golint - run: go get -u golang.org/x/lint/golint
- run: golint ./... - run: golint ./godog
- run: golint ./cmd/godog/main.go
godog:
description: "Run godog"
steps:
- run: go install ./cmd/godog
- run: godog -f progress
go_test: go_test:
description: "Run go test" description: "Run go test"
steps: steps:
@ -37,35 +48,31 @@ commands:
steps: steps:
- codecov/upload: - codecov/upload:
file: "coverage.txt" file: "coverage.txt"
godog:
description: "Run godog"
steps:
- run: go install ./cmd/godog
- run: godog -f progress
all: all:
description: "Run all commands against godog code" description: "Run all commands against godog code"
steps: steps:
- checkout - checkout
- install
- vet - vet
- fmt - fmt
- lint - lint
- godog
- go_test - go_test
- coverage - coverage
- godog
jobs: jobs:
go1_12: go1_12:
working_directory: godog working_directory: /go/src/github.com/cucumber/godog
executor: exec_go_1_12 executor: exec_go_1_12
steps: steps:
- all - all
go1_13: go1_13:
working_directory: godog working_directory: /go/src/github.com/cucumber/godog
executor: exec_go_1_13 executor: exec_go_1_13
steps: steps:
- all - all
go1_14: go1_14:
working_directory: godog working_directory: /go/src/github.com/cucumber/godog
executor: exec_go_1_14 executor: exec_go_1_14
steps: steps:
- all - all