ARO-RP/.pipelines/e2e.yml

45 строки
1.1 KiB
YAML
Исходник Обычный вид История

2020-02-27 16:34:46 +03:00
# Azure DevOps Pipeline running e2e tests
variables:
2020-04-03 20:01:11 +03:00
- template: vars.yml
2020-02-27 16:34:46 +03:00
jobs:
2020-04-03 20:01:11 +03:00
- job: E2E
2020-10-21 14:52:41 +03:00
timeoutInMinutes: 180
2020-04-03 20:01:11 +03:00
pool:
2020-08-10 15:25:30 +03:00
name: ARO-CI
2020-04-03 20:01:11 +03:00
steps:
2020-08-10 15:25:30 +03:00
- template: ./templates/template-checkout.yml
2020-04-03 20:01:11 +03:00
- template: ./templates/template-az-cli-login.yml
parameters:
azureDevOpsJSONSPN: $(aro-v4-e2e-devops-spn)
- script: |
export SECRET_SA_ACCOUNT_NAME=$(SECRET_SA_ACCOUNT_NAME)
make secrets
. secrets/env
echo "##vso[task.setvariable variable=RP_MODE]$RP_MODE"
displayName: 🔑 Downloading certificates and secrets from storage account
name: setEnv
- template: ./templates/template-push-images-to-acr.yml
parameters:
rpImageACR: $(RP_IMAGE_ACR)
2020-11-02 20:49:11 +03:00
- script: |
set -e
set -o pipefail
. secrets/env
az account set -s $AZURE_SUBSCRIPTION_ID
set -x
. ./hack/e2e/run-rp-and-e2e.sh
trap 'set +e; kill_rp; clean_e2e_db' EXIT
deploy_e2e_db
run_rp
validate_rp_running
register_sub
export CI=true
make test-e2e
2020-10-08 16:18:09 +03:00
- template: ./templates/template-az-cli-logout.yml