ci: avoid paging

This commit is contained in:
Mahmood Ali 2019-11-22 11:51:10 -05:00
parent 5c17bf36b8
commit 57ff36df5c
2 changed files with 40 additions and 9 deletions

26
.circleci/config.yml generated
View File

@ -9,11 +9,13 @@ jobs:
image: ubuntu-1604:201903-01
working_directory: ~/go/src/github.com/hashicorp/nomad
environment:
- GIT_PAGER: cat
- GOLANG_VERSION: 1.12.13
- GOMAXPROCS: 1
- GOPATH: /home/circleci/go
- GOTESTSUM_JUNITFILE: /tmp/test-reports/results.xml
- NOMAD_SLOW_TEST: 1
- PAGER: cat
- GOTEST_PKGS: ./nomad/...
- GOTEST_PKGS_EXCLUDE: ''
- GOTESTARCH: amd64
@ -83,11 +85,13 @@ jobs:
image: ubuntu-1604:201903-01
working_directory: ~/go/src/github.com/hashicorp/nomad
environment:
- GIT_PAGER: cat
- GOLANG_VERSION: 1.12.13
- GOMAXPROCS: 1
- GOPATH: /home/circleci/go
- GOTESTSUM_JUNITFILE: /tmp/test-reports/results.xml
- NOMAD_SLOW_TEST: 1
- PAGER: cat
- GOTEST_PKGS: ./api/...
- GOTEST_PKGS_EXCLUDE: ''
- GOTESTARCH: amd64
@ -157,11 +161,13 @@ jobs:
image: ubuntu-1604:201903-01
working_directory: ~/go/src/github.com/hashicorp/nomad
environment:
- GIT_PAGER: cat
- GOLANG_VERSION: 1.12.13
- GOMAXPROCS: 1
- GOPATH: /home/circleci/go
- GOTESTSUM_JUNITFILE: /tmp/test-reports/results.xml
- NOMAD_SLOW_TEST: 1
- PAGER: cat
- GOTEST_PKGS: ./drivers/exec
- GOTEST_PKGS_EXCLUDE: ''
- GOTESTARCH: amd64
@ -231,11 +237,13 @@ jobs:
image: ubuntu-1604:201903-01
working_directory: ~/go/src/github.com/hashicorp/nomad
environment:
- GIT_PAGER: cat
- GOLANG_VERSION: 1.12.13
- GOMAXPROCS: 1
- GOPATH: /home/circleci/go
- GOTESTSUM_JUNITFILE: /tmp/test-reports/results.xml
- NOMAD_SLOW_TEST: 1
- PAGER: cat
- GOTEST_PKGS: ./client/...
- GOTEST_PKGS_EXCLUDE: ''
- GOTESTARCH: amd64
@ -305,11 +313,13 @@ jobs:
image: ubuntu-1604:201903-01
working_directory: ~/go/src/github.com/hashicorp/nomad
environment:
- GIT_PAGER: cat
- GOLANG_VERSION: 1.12.13
- GOMAXPROCS: 1
- GOPATH: /home/circleci/go
- GOTESTSUM_JUNITFILE: /tmp/test-reports/results.xml
- NOMAD_SLOW_TEST: 1
- PAGER: cat
- GOTEST_PKGS: ./drivers/shared/executor
- GOTEST_PKGS_EXCLUDE: ''
- GOTESTARCH: amd64
@ -421,10 +431,12 @@ jobs:
- run:
command: make checkscripts
environment:
- GIT_PAGER: cat
- GOMAXPROCS: 1
- GOPATH: /go
- GOTESTSUM_JUNITFILE: /tmp/test-reports/results.xml
- NOMAD_SLOW_TEST: 1
- PAGER: cat
build-website:
docker:
- image: hashicorp/middleman-hashicorp:0.3.35
@ -452,11 +464,13 @@ jobs:
image: ubuntu-1604:201903-01
working_directory: ~/go/src/github.com/hashicorp/nomad
environment:
- GIT_PAGER: cat
- GOLANG_VERSION: 1.12.13
- GOMAXPROCS: 1
- GOPATH: /home/circleci/go
- GOTESTSUM_JUNITFILE: /tmp/test-reports/results.xml
- NOMAD_SLOW_TEST: 1
- PAGER: cat
- GOTEST_PKGS: ''
- GOTEST_PKGS_EXCLUDE: ./api|./client|./drivers/docker|./drivers/exec|./drivers/rkt|./drivers/shared/executor|./nomad|./devices
- GOTESTARCH: amd64
@ -526,10 +540,12 @@ jobs:
- image: golang:1.12.13
working_directory: /go/src/github.com/hashicorp/nomad
environment:
- GIT_PAGER: cat
- GOMAXPROCS: 1
- GOPATH: /go
- GOTESTSUM_JUNITFILE: /tmp/test-reports/results.xml
- NOMAD_SLOW_TEST: 1
- PAGER: cat
- GOTEST_PKGS: ./devices/...
- GOTEST_PKGS_EXCLUDE: ''
- GOTESTARCH: amd64
@ -587,21 +603,25 @@ jobs:
- run:
command: make test-website
environment:
- GIT_PAGER: cat
- GOLANG_VERSION: 1.12.13
- GOMAXPROCS: 1
- GOPATH: /home/circleci/go
- GOTESTSUM_JUNITFILE: /tmp/test-reports/results.xml
- NOMAD_SLOW_TEST: 1
- PAGER: cat
test-docker:
machine:
image: circleci/classic:201808-01
working_directory: ~/go/src/github.com/hashicorp/nomad
environment:
- GIT_PAGER: cat
- GOLANG_VERSION: 1.12.13
- GOMAXPROCS: 1
- GOPATH: /home/circleci/go
- GOTESTSUM_JUNITFILE: /tmp/test-reports/results.xml
- NOMAD_SLOW_TEST: 1
- PAGER: cat
- GOTEST_PKGS: ./drivers/docker
- GOTEST_PKGS_EXCLUDE: ''
- GOTESTARCH: amd64
@ -671,10 +691,12 @@ jobs:
- image: golang:1.12.13
working_directory: /go/src/github.com/hashicorp/nomad
environment:
- GIT_PAGER: cat
- GOMAXPROCS: 1
- GOPATH: /go
- GOTESTSUM_JUNITFILE: /tmp/test-reports/results.xml
- NOMAD_SLOW_TEST: 1
- PAGER: cat
- GO_TAGS: codegen_generated
steps:
- checkout
@ -718,20 +740,24 @@ jobs:
- run:
command: sudo -E -H -u circleci PATH=${PATH} make e2e-test
environment:
- GIT_PAGER: cat
- GOMAXPROCS: 1
- GOPATH: /go
- GOTESTSUM_JUNITFILE: /tmp/test-reports/results.xml
- NOMAD_SLOW_TEST: 1
- PAGER: cat
test-32bit:
machine:
image: ubuntu-1604:201903-01
working_directory: ~/go/src/github.com/hashicorp/nomad
environment:
- GIT_PAGER: cat
- GOLANG_VERSION: 1.12.13
- GOMAXPROCS: 1
- GOPATH: /home/circleci/go
- GOTESTSUM_JUNITFILE: /tmp/test-reports/results.xml
- NOMAD_SLOW_TEST: 1
- PAGER: cat
- GOTEST_PKGS: ./client/fingerprint
- GOTEST_PKGS_EXCLUDE: ''
- GOTESTARCH: '386'

View File

@ -7,29 +7,34 @@ references:
go-machine-recent-image: &go_machine_recent_image
ubuntu-1604:201903-01
# common references
common_envs: &common_envs
GOMAXPROCS: 1
NOMAD_SLOW_TEST: 1
GOTESTSUM_JUNITFILE: /tmp/test-reports/results.xml
# disable implicit git paging. CircleCI runs commands with in a tty
# making git assume it's an interactive session.
PAGER: cat
GIT_PAGER: cat
executors:
go:
working_directory: /go/src/github.com/hashicorp/nomad
docker:
- image: golang:1.12.13
environment: &common_envs
GOMAXPROCS: 1
NOMAD_SLOW_TEST: 1
GOTESTSUM_JUNITFILE: /tmp/test-reports/results.xml
environment:
<<: *common_envs
GOPATH: /go
go-machine:
working_directory: ~/go/src/github.com/hashicorp/nomad
machine:
image: *go_machine_image
environment: &machine_env
GOMAXPROCS: 1
NOMAD_SLOW_TEST: 1
GOTESTSUM_JUNITFILE: /tmp/test-reports/results.xml
<<: *common_envs
GOPATH: /home/circleci/go
GOLANG_VERSION: "1.12.13"
# uses a more recent image with unattended upgrades disabled properly
# but seems to break docker builds
go-machine-recent: