mirror of
https://github.com/containers/podman.git
synced 2025-06-22 01:48:54 +08:00
Merge pull request #2711 from cevich/parallel_vendor_check
Cirrus: Run vendor check in parallel
This commit is contained in:
40
.cirrus.yml
40
.cirrus.yml
@ -116,20 +116,13 @@ gating_task:
|
|||||||
cpu: 4
|
cpu: 4
|
||||||
memory: 12
|
memory: 12
|
||||||
|
|
||||||
|
timeout_in: 20m
|
||||||
|
|
||||||
gate_script:
|
gate_script:
|
||||||
- '/usr/local/bin/entrypoint.sh validate'
|
- '/usr/local/bin/entrypoint.sh validate'
|
||||||
- '/usr/local/bin/entrypoint.sh lint'
|
- '/usr/local/bin/entrypoint.sh lint'
|
||||||
- '${CIRRUS_WORKING_DIR}/${SCRIPT_BASE}/test/test_dot_cirrus_yaml.py'
|
- '${CIRRUS_WORKING_DIR}/${SCRIPT_BASE}/test/test_dot_cirrus_yaml.py'
|
||||||
|
|
||||||
# This task runs `make vendor` followed by ./hack/tree_status.sh to check
|
|
||||||
# whether the git tree is clean. The reasoning for that is to make sure
|
|
||||||
# that the vendor.conf, the code and the vendored packages in ./vendor are
|
|
||||||
# in sync at all times.
|
|
||||||
vendor_script:
|
|
||||||
- '/usr/local/bin/entrypoint.sh .install.vndr'
|
|
||||||
- '/usr/local/bin/entrypoint.sh vendor'
|
|
||||||
- 'cd /go/src/github.com/containers/libpod && ./hack/tree_status.sh'
|
|
||||||
|
|
||||||
# This task builds Podman with different buildtags to ensure the build does
|
# This task builds Podman with different buildtags to ensure the build does
|
||||||
# not break.
|
# not break.
|
||||||
build_script:
|
build_script:
|
||||||
@ -142,6 +135,35 @@ gating_task:
|
|||||||
master_script: '$CIRRUS_WORKING_DIR/$SCRIPT_BASE/notice_master_failure.sh'
|
master_script: '$CIRRUS_WORKING_DIR/$SCRIPT_BASE/notice_master_failure.sh'
|
||||||
|
|
||||||
|
|
||||||
|
# This task runs `make vendor` followed by ./hack/tree_status.sh to check
|
||||||
|
# whether the git tree is clean. The reasoning for that is to make sure
|
||||||
|
# that the vendor.conf, the code and the vendored packages in ./vendor are
|
||||||
|
# in sync at all times.
|
||||||
|
vendor_task:
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- "gating"
|
||||||
|
|
||||||
|
env:
|
||||||
|
CIRRUS_WORKING_DIR: "/usr/src/libpod"
|
||||||
|
|
||||||
|
# Runs within Cirrus's "community cluster"
|
||||||
|
container:
|
||||||
|
image: "quay.io/libpod/gate:latest"
|
||||||
|
cpu: 4
|
||||||
|
memory: 12
|
||||||
|
|
||||||
|
timeout_in: 30m
|
||||||
|
|
||||||
|
vendor_script:
|
||||||
|
- '/usr/local/bin/entrypoint.sh .install.vndr'
|
||||||
|
- '/usr/local/bin/entrypoint.sh vendor'
|
||||||
|
- 'cd /go/src/github.com/containers/libpod && ./hack/tree_status.sh'
|
||||||
|
|
||||||
|
on_failure:
|
||||||
|
master_script: '$CIRRUS_WORKING_DIR/$SCRIPT_BASE/notice_master_failure.sh'
|
||||||
|
|
||||||
|
|
||||||
build_each_commit_task:
|
build_each_commit_task:
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
|
Reference in New Issue
Block a user