435c0d9fc8
This PR switches the Nomad repository from using govendor to Go modules for managing dependencies. Aspects of the Nomad workflow remain pretty much the same. The usual Makefile targets should continue to work as they always did. The API submodule simply defers to the parent Nomad version on the repository, keeping the semantics of API versioning that currently exists.
76 lines
2.2 KiB
YAML
76 lines
2.2 KiB
YAML
jobs:
|
|
- build-binaries:
|
|
# almost always build binaries as they may be needed
|
|
# for e2e tests
|
|
filters:
|
|
branches:
|
|
ignore:
|
|
- stable-website
|
|
- /^.-ui\b.*/
|
|
- lint-go:
|
|
filters: &backend_branches_filter
|
|
branches:
|
|
ignore:
|
|
- /^.-ui\b.*/
|
|
- /^docs-.*/
|
|
- stable-website
|
|
|
|
- build-darwin-binaries:
|
|
filters: *backend_branches_filter
|
|
- test-windows:
|
|
filters: *backend_branches_filter
|
|
|
|
- test-machine:
|
|
name: "test-client"
|
|
test_packages: "./client/..."
|
|
filters: *backend_branches_filter
|
|
- test-machine:
|
|
name: "test-nomad"
|
|
test_packages: "./nomad/..."
|
|
filters: *backend_branches_filter
|
|
- test-machine:
|
|
# API Tests run in a VM rather than container due to the FS tests
|
|
# requiring `mount` priviliges.
|
|
name: "test-api"
|
|
test_module: "api"
|
|
filters: *backend_branches_filter
|
|
- test-container:
|
|
name: "test-devices"
|
|
test_packages: "./devices/..."
|
|
filters: *backend_branches_filter
|
|
- test-machine:
|
|
name: "test-other"
|
|
exclude_packages: "./api|./client|./drivers/docker|./drivers/exec|./drivers/shared/executor|./nomad|./devices"
|
|
filters: *backend_branches_filter
|
|
- test-machine:
|
|
name: "test-docker"
|
|
test_packages: "./drivers/docker"
|
|
# docker is misbehaving in docker-machine-recent image
|
|
# and we get unexpected failures
|
|
# e.g. https://circleci.com/gh/hashicorp/nomad/3854
|
|
executor: go-machine
|
|
filters: *backend_branches_filter
|
|
- test-machine:
|
|
name: "test-exec"
|
|
test_packages: "./drivers/exec"
|
|
filters: *backend_branches_filter
|
|
- test-machine:
|
|
name: "test-shared-exec"
|
|
test_packages: "./drivers/shared/executor"
|
|
filters: *backend_branches_filter
|
|
- test-machine:
|
|
name: "test-32bit"
|
|
# Currently we only explicitly test fingerprinting on 32bit
|
|
# architectures.
|
|
test_packages: "./client/fingerprint"
|
|
goarch: "386"
|
|
filters: *backend_branches_filter
|
|
- test-e2e:
|
|
filters: *backend_branches_filter
|
|
- test-ui:
|
|
filters:
|
|
branches:
|
|
ignore:
|
|
- stable-website
|
|
- /^docs-.*/
|