From 841248cb7b78cc26fe63028b972629145c95d045 Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Merino Date: Thu, 29 Feb 2024 12:56:26 +0100 Subject: [PATCH] [CIVIS-9278] Dogfood quality-gates in the CI This patch adds quality gates to the CI. All rules will be non-blocking --- .gitlab-ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ddf3917437..d6d4dbe9fe 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,7 @@ stages: - info - lint - test + - gate ENV info: stage: info @@ -84,3 +85,13 @@ SDK integration tests (iOS): - ./tools/config/generate-http-server-mock-config.sh - xcodebuild -workspace "$TEST_WORKSPACE" -destination "$TEST_DESTINATION" -scheme "IntegrationScenarios" -testPlan DatadogIntegrationTests test | xcbeautify - xcodebuild -workspace "$TEST_WORKSPACE" -destination "$TEST_DESTINATION" -scheme "IntegrationScenarios" -testPlan DatadogCrashReportingIntegrationTests test | xcbeautify + +Gate: + stage: gate + allow_failure: true + script: + - curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci" && chmod +x /usr/local/bin/datadog-ci + - export DD_BETA_COMMANDS_ENABLED=true + - export DD_API_KEY=${DD_SDK_SWIFT_TESTING_APIKEY} + - export DD_APP_KEY=${DD_SDK_SWIFT_TESTING_APPLICATION_KEY} + - datadog-ci gate evaluate