|
| 1 | +# CI configuration file for CI utilizing cirrus-ci.org |
| 2 | +# |
| 3 | +# For instructions on how to enable the CI integration in a repository and |
| 4 | +# further details, see src/tools/ci/README |
| 5 | +# |
| 6 | +# |
| 7 | +# The actual CI tasks are defined in .cirrus.tasks.yml. To make the compute |
| 8 | +# resources for CI configurable on a repository level, the "final" CI |
| 9 | +# configuration is the combination of: |
| 10 | +# |
| 11 | +# 1) the contents of this file |
| 12 | +# |
| 13 | +# 2) if defined, the contents of the file referenced by the, repository |
| 14 | +# level, REPO_CI_CONFIG_GIT_URL variable (see |
| 15 | +# https://cirrus-ci.org/guide/programming-tasks/#fs for the accepted |
| 16 | +# format) |
| 17 | +# |
| 18 | +# 3) .cirrus.tasks.yml |
| 19 | +# |
| 20 | +# This composition is done by .cirrus.star |
| 21 | + |
| 22 | + |
| 23 | +env: |
| 24 | + # Source of images / containers |
| 25 | + GCP_PROJECT: pg-ci-images |
| 26 | + IMAGE_PROJECT: $GCP_PROJECT |
| 27 | + CONTAINER_REPO: us-docker.pkg.dev/${GCP_PROJECT}/ci |
| 28 | + DISK_SIZE: 25 |
| 29 | + |
| 30 | + |
| 31 | +# Define how to run various types of tasks. |
| 32 | + |
| 33 | +# VMs provided by cirrus-ci. Each user has a limited number of "free" credits |
| 34 | +# for testing. |
| 35 | +cirrus_community_vm_template: &cirrus_community_vm_template |
| 36 | + compute_engine_instance: |
| 37 | + image_project: $IMAGE_PROJECT |
| 38 | + image: family/$IMAGE_FAMILY |
| 39 | + platform: $PLATFORM |
| 40 | + cpu: $CPUS |
| 41 | + disk: $DISK_SIZE |
| 42 | + |
| 43 | + |
| 44 | +default_linux_task_template: &linux_task_template |
| 45 | + env: |
| 46 | + PLATFORM: linux |
| 47 | + <<: *cirrus_community_vm_template |
| 48 | + |
| 49 | + |
| 50 | +default_freebsd_task_template: &freebsd_task_template |
| 51 | + env: |
| 52 | + PLATFORM: freebsd |
| 53 | + <<: *cirrus_community_vm_template |
| 54 | + |
| 55 | + |
| 56 | +default_windows_task_template: &windows_task_template |
| 57 | + env: |
| 58 | + PLATFORM: windows |
| 59 | + <<: *cirrus_community_vm_template |
| 60 | + |
| 61 | + |
| 62 | +# macos workers provided by cirrus-ci |
| 63 | +default_macos_task_template: &macos_task_template |
| 64 | + env: |
| 65 | + PLATFORM: macos |
| 66 | + macos_instance: |
| 67 | + image: $IMAGE |
| 68 | + |
| 69 | + |
| 70 | +# Contents of REPO_CI_CONFIG_GIT_URL, if defined, will be inserted here, |
| 71 | +# followed by the contents .cirrus.tasks.yml. This allows |
| 72 | +# REPO_CI_CONFIG_GIT_URL to override how the task types above will be |
| 73 | +# executed, e.g. using a custom compute account or permanent workers. |
0 commit comments