mirror of https://github.com/containers/podman.git
cirrus: add test for compiling without cgo
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
827ac0859f
commit
473d060454
34
.cirrus.yml
34
.cirrus.yml
|
@ -215,6 +215,35 @@ build_each_commit_task:
|
||||||
on_failure:
|
on_failure:
|
||||||
failed_master_script: '$CIRRUS_WORKING_DIR/$SCRIPT_BASE/notice_master_failure.sh'
|
failed_master_script: '$CIRRUS_WORKING_DIR/$SCRIPT_BASE/notice_master_failure.sh'
|
||||||
|
|
||||||
|
build_without_cgo:
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- "gating"
|
||||||
|
- "vendor"
|
||||||
|
- "varlink_api"
|
||||||
|
|
||||||
|
# $CIRRUS_BASE_BRANCH is only set when testing a PR
|
||||||
|
only_if: $CIRRUS_BRANCH != 'master' &&
|
||||||
|
$CIRRUS_CHANGE_MESSAGE !=~ '.*\*\*\*\s*CIRRUS:\s*TEST\s*IMAGES\s*\*\*\*.*'
|
||||||
|
|
||||||
|
gce_instance:
|
||||||
|
image_project: "libpod-218412"
|
||||||
|
zone: "us-central1-a" # Required by Cirrus for the time being
|
||||||
|
cpu: 8
|
||||||
|
memory: "8Gb"
|
||||||
|
disk: 200
|
||||||
|
image_name: "${FEDORA_CACHE_IMAGE_NAME}"
|
||||||
|
|
||||||
|
timeout_in: 30m
|
||||||
|
|
||||||
|
setup_environment_script: '$SCRIPT_BASE/setup_environment.sh |& ${TIMESTAMP}'
|
||||||
|
build_without_cgo_script:
|
||||||
|
- 'source $SCRIPT_BASE/lib.sh'
|
||||||
|
- 'make build-no-cgo'
|
||||||
|
|
||||||
|
on_failure:
|
||||||
|
failed_master_script: '$CIRRUS_WORKING_DIR/$SCRIPT_BASE/notice_master_failure.sh'
|
||||||
|
|
||||||
|
|
||||||
# Update metadata on VM images referenced by this repository state
|
# Update metadata on VM images referenced by this repository state
|
||||||
meta_task:
|
meta_task:
|
||||||
|
@ -224,6 +253,7 @@ meta_task:
|
||||||
- "vendor"
|
- "vendor"
|
||||||
- "varlink_api"
|
- "varlink_api"
|
||||||
- "build_each_commit"
|
- "build_each_commit"
|
||||||
|
- "build_without_cgo"
|
||||||
|
|
||||||
container:
|
container:
|
||||||
image: "quay.io/libpod/imgts:latest" # see contrib/imgts
|
image: "quay.io/libpod/imgts:latest" # see contrib/imgts
|
||||||
|
@ -257,6 +287,7 @@ testing_task:
|
||||||
- "vendor"
|
- "vendor"
|
||||||
- "varlink_api"
|
- "varlink_api"
|
||||||
- "build_each_commit"
|
- "build_each_commit"
|
||||||
|
- "build_without_cgo"
|
||||||
|
|
||||||
# Only test build cache-images, if that's what's requested
|
# Only test build cache-images, if that's what's requested
|
||||||
only_if: $CIRRUS_CHANGE_MESSAGE !=~ '.*\*\*\*\s*CIRRUS:\s*TEST\s*IMAGES\s*\*\*\*.*'
|
only_if: $CIRRUS_CHANGE_MESSAGE !=~ '.*\*\*\*\s*CIRRUS:\s*TEST\s*IMAGES\s*\*\*\*.*'
|
||||||
|
@ -298,6 +329,7 @@ special_testing_rootless_task:
|
||||||
- "varlink_api"
|
- "varlink_api"
|
||||||
- "vendor"
|
- "vendor"
|
||||||
- "build_each_commit"
|
- "build_each_commit"
|
||||||
|
- "build_without_cgo"
|
||||||
|
|
||||||
only_if: $CIRRUS_CHANGE_MESSAGE !=~ '.*\*\*\*\s*CIRRUS:\s*TEST\s*IMAGES\s*\*\*\*.*'
|
only_if: $CIRRUS_CHANGE_MESSAGE !=~ '.*\*\*\*\s*CIRRUS:\s*TEST\s*IMAGES\s*\*\*\*.*'
|
||||||
|
|
||||||
|
@ -328,6 +360,7 @@ special_testing_in_podman_task:
|
||||||
- "varlink_api"
|
- "varlink_api"
|
||||||
- "vendor"
|
- "vendor"
|
||||||
- "build_each_commit"
|
- "build_each_commit"
|
||||||
|
- "build_without_cgo"
|
||||||
|
|
||||||
only_if: $CIRRUS_CHANGE_MESSAGE !=~ '.*\*\*\*\s*CIRRUS:\s*TEST\s*IMAGES\s*\*\*\*.*'
|
only_if: $CIRRUS_CHANGE_MESSAGE !=~ '.*\*\*\*\s*CIRRUS:\s*TEST\s*IMAGES\s*\*\*\*.*'
|
||||||
|
|
||||||
|
@ -433,6 +466,7 @@ success_task:
|
||||||
- "special_testing_in_podman"
|
- "special_testing_in_podman"
|
||||||
- "test_build_cache_images"
|
- "test_build_cache_images"
|
||||||
- "verify_test_built_images"
|
- "verify_test_built_images"
|
||||||
|
- "build_without_cgo"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CIRRUS_WORKING_DIR: "/usr/src/libpod"
|
CIRRUS_WORKING_DIR: "/usr/src/libpod"
|
||||||
|
|
3
Makefile
3
Makefile
|
@ -399,6 +399,9 @@ build-all-new-commits:
|
||||||
# Validate that all the commits build on top of $(GIT_BASE_BRANCH)
|
# Validate that all the commits build on top of $(GIT_BASE_BRANCH)
|
||||||
git rebase $(GIT_BASE_BRANCH) -x make
|
git rebase $(GIT_BASE_BRANCH) -x make
|
||||||
|
|
||||||
|
build-no-cgo:
|
||||||
|
env BUILDTAGS="containers_image_openpgp containers_image_ostree_stub exclude_graphdriver_btrfs exclude_graphdriver_devicemapper exclude_disk_quota" CGO_ENABLED=0 $(MAKE)
|
||||||
|
|
||||||
vendor:
|
vendor:
|
||||||
export GO111MODULE=on \
|
export GO111MODULE=on \
|
||||||
$(GO) mod tidy && \
|
$(GO) mod tidy && \
|
||||||
|
|
Loading…
Reference in New Issue