2019-11-20 16:11:28 +00:00
|
|
|
jobs:
|
2020-05-04 23:02:15 +00:00
|
|
|
- build-binaries:
|
|
|
|
# almost always build binaries as they may be needed
|
|
|
|
# for e2e tests
|
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
ignore:
|
|
|
|
- stable-website
|
|
|
|
- /^.-ui\b.*/
|
2020-09-18 13:25:29 +00:00
|
|
|
|
2020-05-04 23:02:15 +00:00
|
|
|
- lint-go:
|
2020-09-18 13:25:29 +00:00
|
|
|
# check branches are almost all the backend branches
|
|
|
|
filters: &backend_check_branches_filter
|
2020-05-04 23:02:15 +00:00
|
|
|
branches:
|
|
|
|
ignore:
|
|
|
|
- /^.-ui\b.*/
|
|
|
|
- /^docs-.*/
|
|
|
|
- stable-website
|
|
|
|
- build-darwin-binaries:
|
2020-09-18 13:25:29 +00:00
|
|
|
filters: *backend_check_branches_filter
|
|
|
|
- test-e2e:
|
|
|
|
filters: *backend_check_branches_filter
|
|
|
|
|
|
|
|
- test-ui:
|
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
ignore:
|
|
|
|
- stable-website
|
|
|
|
- /^docs-.*/
|
2020-03-23 15:28:54 +00:00
|
|
|
|
2020-09-18 13:25:29 +00:00
|
|
|
- test-windows:
|
|
|
|
# test branches are the branches that can impact unit tests
|
|
|
|
filters: &backend_test_branches_filter
|
|
|
|
branches:
|
|
|
|
ignore:
|
|
|
|
- /^.-ui\b.*/
|
|
|
|
- /^docs-.*/
|
|
|
|
- /^e2e-.*/
|
|
|
|
- stable-website
|
2020-05-04 23:02:15 +00:00
|
|
|
- test-machine:
|
|
|
|
name: "test-client"
|
|
|
|
test_packages: "./client/..."
|
2020-09-18 13:25:29 +00:00
|
|
|
filters: *backend_test_branches_filter
|
2020-05-04 23:02:15 +00:00
|
|
|
- test-machine:
|
|
|
|
name: "test-nomad"
|
|
|
|
test_packages: "./nomad/..."
|
2020-09-18 13:25:29 +00:00
|
|
|
filters: *backend_test_branches_filter
|
2020-05-04 23:02:15 +00:00
|
|
|
- test-machine:
|
|
|
|
# API Tests run in a VM rather than container due to the FS tests
|
|
|
|
# requiring `mount` priviliges.
|
|
|
|
name: "test-api"
|
2020-05-30 14:29:47 +00:00
|
|
|
test_module: "api"
|
2020-09-18 13:25:29 +00:00
|
|
|
filters: *backend_test_branches_filter
|
2020-05-04 23:02:15 +00:00
|
|
|
- test-container:
|
|
|
|
name: "test-devices"
|
|
|
|
test_packages: "./devices/..."
|
2020-09-18 13:25:29 +00:00
|
|
|
filters: *backend_test_branches_filter
|
2020-05-04 23:02:15 +00:00
|
|
|
- test-machine:
|
|
|
|
name: "test-other"
|
|
|
|
exclude_packages: "./api|./client|./drivers/docker|./drivers/exec|./drivers/shared/executor|./nomad|./devices"
|
2020-09-18 13:25:29 +00:00
|
|
|
filters: *backend_test_branches_filter
|
2020-05-04 23:02:15 +00:00
|
|
|
- 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
|
2020-09-18 13:25:29 +00:00
|
|
|
filters: *backend_test_branches_filter
|
2020-05-04 23:02:15 +00:00
|
|
|
- test-machine:
|
|
|
|
name: "test-exec"
|
|
|
|
test_packages: "./drivers/exec"
|
2020-09-18 13:25:29 +00:00
|
|
|
filters: *backend_test_branches_filter
|
2020-05-04 23:02:15 +00:00
|
|
|
- test-machine:
|
|
|
|
name: "test-shared-exec"
|
|
|
|
test_packages: "./drivers/shared/executor"
|
2020-09-18 13:25:29 +00:00
|
|
|
filters: *backend_test_branches_filter
|
2020-05-04 23:02:15 +00:00
|
|
|
- test-machine:
|
|
|
|
name: "test-32bit"
|
|
|
|
# Currently we only explicitly test fingerprinting on 32bit
|
|
|
|
# architectures.
|
|
|
|
test_packages: "./client/fingerprint"
|
|
|
|
goarch: "386"
|
2020-09-18 13:25:29 +00:00
|
|
|
filters: *backend_test_branches_filter
|