Skip to content

Commit

Permalink
BUILD-3176 Use SonarSource CirrusCI infrastructure to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
drautureau-sonarsource committed Sep 27, 2023
1 parent a1a383e commit ecc9777
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,10 @@ env:


vm_instance_template: &VM_TEMPLATE
experimental: true # see https://github.com/cirruslabs/cirrus-ci-docs/issues/1051
image: docker-builder-v*
type: t2.small
region: eu-central-1
subnet_id: ${CIRRUS_AWS_SUBNET}
disk: 10
cpu: 4
memory: 16G


multi_arch_build_task:
Expand Down Expand Up @@ -104,12 +100,16 @@ public_scan_task:
- docker pull "${PUBLIC_IMAGE_NAME}:${tag}"
- java -jar wss-unified-agent.jar -c .cirrus/wss-unified-agent.config -apiKey $MEND_API_KEY -product ${WS_PRODUCTNAME} -project ${PUBLIC_IMAGE_NAME}:${tag} -wss.url ${WS_WSS_URL} -docker.scanImages true

multi_arch_test_docker_builder:
multi_arch_test_task:
matrix:
- env:
CIRRUS_ARCH: arm64
INSTANCE_TYPE: t4g.medium
AMI_NAME: docker-builder-arm64-v*
- env:
CIRRUS_ARCH: amd64
INSTANCE_TYPE: t3.medium
AMI_NAME: docker-builder-v*
env:
matrix:
- test_name: docker
Expand All @@ -128,6 +128,11 @@ multi_arch_test_docker_builder:
tag: $CURRENT_VERSION-enterprise
- test_name: docker-compose
tag: $CURRENT_VERSION-datacenter
ec2_instance:
<<: *VM_TEMPLATE
image: ${AMI_NAME}
type: ${INSTANCE_TYPE}
architecture: ${CIRRUS_ARCH}
login_script:
- docker login --username $DOCKER_USERNAME --password $DOCKER_PASSWORD
test_script:
Expand Down

0 comments on commit ecc9777

Please sign in to comment.