2019-11-20 16:11:28 +00:00
|
|
|
version: 2.1
|
|
|
|
|
|
|
|
references:
|
|
|
|
# environment specific references - aim to avoid conflicts
|
|
|
|
go-machine-image: &go_machine_image
|
|
|
|
circleci/classic:201808-01
|
|
|
|
go-machine-recent-image: &go_machine_recent_image
|
|
|
|
ubuntu-1604:201903-01
|
2020-05-04 23:02:15 +00:00
|
|
|
go-windows-image: &go_windows_image
|
2020-05-06 00:02:15 +00:00
|
|
|
windows-server-2019-vs2019:stable
|
2019-11-20 16:11:28 +00:00
|
|
|
|
2019-11-22 16:51:10 +00:00
|
|
|
# common references
|
|
|
|
common_envs: &common_envs
|
|
|
|
GOMAXPROCS: 1
|
|
|
|
NOMAD_SLOW_TEST: 1
|
2020-05-06 00:02:15 +00:00
|
|
|
GOTESTSUM_JUNITFILE: /tmp/test-reports/results.xml
|
|
|
|
GOTESTSUM_JSONFILE: /tmp/test-reports/testjsonfile.json
|
2019-11-22 16:51:10 +00:00
|
|
|
# disable implicit git paging. CircleCI runs commands with in a tty
|
|
|
|
# making git assume it's an interactive session.
|
|
|
|
PAGER: cat
|
|
|
|
GIT_PAGER: cat
|
|
|
|
|
2019-11-20 16:11:28 +00:00
|
|
|
executors:
|
|
|
|
go:
|
|
|
|
working_directory: /go/src/github.com/hashicorp/nomad
|
|
|
|
docker:
|
2020-09-09 19:59:29 +00:00
|
|
|
- image: golang:1.15.1
|
2019-11-22 16:51:10 +00:00
|
|
|
environment:
|
|
|
|
<<: *common_envs
|
2019-11-20 16:11:28 +00:00
|
|
|
GOPATH: /go
|
2019-11-22 16:51:10 +00:00
|
|
|
|
2019-11-20 16:11:28 +00:00
|
|
|
go-machine:
|
|
|
|
working_directory: ~/go/src/github.com/hashicorp/nomad
|
|
|
|
machine:
|
|
|
|
image: *go_machine_image
|
|
|
|
environment: &machine_env
|
2019-11-22 16:51:10 +00:00
|
|
|
<<: *common_envs
|
2019-11-20 16:11:28 +00:00
|
|
|
GOPATH: /home/circleci/go
|
2020-09-09 19:59:29 +00:00
|
|
|
GOLANG_VERSION: 1.15.1
|
2019-11-20 16:11:28 +00:00
|
|
|
|
|
|
|
# uses a more recent image with unattended upgrades disabled properly
|
|
|
|
# but seems to break docker builds
|
|
|
|
go-machine-recent:
|
|
|
|
working_directory: ~/go/src/github.com/hashicorp/nomad
|
|
|
|
machine:
|
|
|
|
image: *go_machine_recent_image
|
|
|
|
environment: *machine_env
|
2020-03-23 15:28:54 +00:00
|
|
|
|
|
|
|
go-macos:
|
|
|
|
working_directory: ~/go/src/github.com/hashicorp/nomad
|
|
|
|
macos:
|
|
|
|
xcode: 11.3.1
|
|
|
|
environment:
|
|
|
|
<<: *common_envs
|
|
|
|
GOPATH: /Users/distiller/go
|
2020-09-09 19:59:29 +00:00
|
|
|
GOLANG_VERSION: 1.15.1
|
2020-05-04 23:02:15 +00:00
|
|
|
|
|
|
|
go-windows:
|
|
|
|
machine:
|
|
|
|
image: *go_windows_image
|
|
|
|
resource_class: windows.medium
|
|
|
|
shell: bash --login -eo pipefail
|
|
|
|
working_directory: c:\gopath\src\github.com\hashicorp\nomad
|
|
|
|
environment:
|
|
|
|
GOPATH: c:\gopath
|
|
|
|
GOBIN: c:\gopath\bin
|
|
|
|
GOTESTSUM_PATH: c:\tmp\test-reports
|
2020-09-09 19:59:29 +00:00
|
|
|
GOLANG_VERSION: 1.15.1
|
2020-05-04 23:02:15 +00:00
|
|
|
GOTESTSUM_VERSION: 0.4.2
|
|
|
|
VAULT_VERSION: 1.4.1
|