Browse Source

Nightly run of DB upgrade tests

tags/7.8
Simon Brandhof 5 years ago
parent
commit
1c87d60800
1 changed files with 126 additions and 10 deletions
  1. 126
    10
      .cirrus.yml

+ 126
- 10
.cirrus.yml View File

QA_CATEGORY: Billing QA_CATEGORY: Billing
QA_CATEGORY: License QA_CATEGORY: License
QA_CATEGORY: Branch QA_CATEGORY: Branch
QA_CATEGORY: Upgrade
# No need to clone the full history. # No need to clone the full history.
# Depth of 1 is not enough because it would fail the build in case of consecutive pushes # Depth of 1 is not enough because it would fail the build in case of consecutive pushes
# (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!") # (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
script: script:
- ./private/cirrus/cirrus-promote.sh - ./private/cirrus/cirrus-promote.sh


db_unit_mysql57_task:
test_sql_mysql57_task:
depends_on: build depends_on: build
# Comment the following line and commit with message "DO NOT MERGE" in order to run # Comment the following line and commit with message "DO NOT MERGE" in order to run
# this task on your branch # this task on your branch
only_if: $CIRRUS_BRANCH == "master"
only_if: $CIRRUS_TAG == "nightly-build"
gke_container: gke_container:
image: gradle:4.10.1-jdk8 image: gradle:4.10.1-jdk8
cluster_name: cirrus-euw3a-cluster cluster_name: cirrus-euw3a-cluster
cleanup_before_cache_script: cleanup_before_cache_script:
- ./private/cirrus/cleanup-gradle-cache.sh - ./private/cirrus/cleanup-gradle-cache.sh


db_mssql2017_task:
test_sql_mssql2017_task:
depends_on: build depends_on: build
# Comment the following line and commit with message "DO NOT MERGE" in order to run # Comment the following line and commit with message "DO NOT MERGE" in order to run
# this task on your branch # this task on your branch
only_if: $CIRRUS_BRANCH == "master"
only_if: $CIRRUS_TAG == "nightly-build"
gke_container: gke_container:
image: gradle:4.10.1-jdk8 image: gradle:4.10.1-jdk8
cluster_name: cirrus-euw3a-cluster cluster_name: cirrus-euw3a-cluster
cleanup_before_cache_script: cleanup_before_cache_script:
- ./private/cirrus/cleanup-gradle-cache.sh - ./private/cirrus/cleanup-gradle-cache.sh


db_mssql2019_task:
test_sql_mssql2019_task:
depends_on: build depends_on: build
# Comment the following line and commit with message "DO NOT MERGE" in order to run # Comment the following line and commit with message "DO NOT MERGE" in order to run
# this task on your branch # this task on your branch
only_if: $CIRRUS_BRANCH == "master"
only_if: $CIRRUS_TAG == "nightly-build"
gke_container: gke_container:
image: gradle:4.10.1-jdk8 image: gradle:4.10.1-jdk8
cluster_name: cirrus-euw3a-cluster cluster_name: cirrus-euw3a-cluster
- ./private/cirrus/cleanup-gradle-cache.sh - ./private/cirrus/cleanup-gradle-cache.sh


# this is the oldest compatible version of PostgreSQL # this is the oldest compatible version of PostgreSQL
db_postgres93_task:
test_sql_postgres93_task:
depends_on: build depends_on: build
# Comment the following line and commit with message "DO NOT MERGE" in order to run # Comment the following line and commit with message "DO NOT MERGE" in order to run
# this task on your branch # this task on your branch
only_if: $CIRRUS_BRANCH == "master"
only_if: $CIRRUS_TAG == "nightly-build"
gke_container: gke_container:
image: gradle:4.10.1-jdk8 image: gradle:4.10.1-jdk8
cluster_name: cirrus-euw3a-cluster cluster_name: cirrus-euw3a-cluster
cleanup_before_cache_script: cleanup_before_cache_script:
- ./private/cirrus/cleanup-gradle-cache.sh - ./private/cirrus/cleanup-gradle-cache.sh


db_oracle12_task:
test_sql_oracle12_task:
depends_on: build depends_on: build
# Comment the following line and commit with message "DO NOT MERGE" in order to run # Comment the following line and commit with message "DO NOT MERGE" in order to run
# this task on your branch # this task on your branch
only_if: $CIRRUS_BRANCH == "master"
only_if: $CIRRUS_TAG == "nightly-build"
gke_container: gke_container:
image: gradle:4.10.1-jdk8 image: gradle:4.10.1-jdk8
cluster_name: cirrus-euw3a-cluster cluster_name: cirrus-euw3a-cluster
- ./private/cirrus/cirrus-db-unit-test.sh oracle12 - ./private/cirrus/cirrus-db-unit-test.sh oracle12
cleanup_before_cache_script: cleanup_before_cache_script:
- ./private/cirrus/cleanup-gradle-cache.sh - ./private/cirrus/cleanup-gradle-cache.sh


test_upgrade_mysql57_task:
depends_on: build
# Comment the following line and commit with message "DO NOT MERGE" in order to run
# this task on your branch
only_if: $CIRRUS_TAG == "nightly-build"
gke_container:
dockerfile: private/docker/Dockerfile-build
builder_image_project: ci-cd-215716
builder_image_name: docker-builder-v1
cluster_name: cirrus-euw3a-cluster
zone: europe-west3-a
namespace: default
cpu: 1.5
memory: 6Gb
additional_containers:
- name: mysql
image: mysql:5.7 # see https://github.com/mysql/mysql-docker
port: 3306
cpu: 1
memory: 1Gb
env:
MYSQL_ROOT_PASSWORD: sonarsource
MYSQL_DATABASE: sonar
MYSQL_USER: sonar
MYSQL_PASSWORD: sonar
env:
matrix:
QA_CATEGORY: Upgrade
# No need to clone the full history.
# Depth of 1 is not enough because it would fail the build in case of consecutive pushes
# (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
CIRRUS_CLONE_DEPTH: 50
gradle_cache:
folder: ~/.gradle/caches
script:
- ./private/cirrus/cirrus-qa.sh mysql57
cleanup_before_cache_script:
- ./private/cirrus/cleanup-gradle-cache.sh

test_upgrade_mssql2017_task:
depends_on: build
# Comment the following line and commit with message "DO NOT MERGE" in order to run
# this task on your branch
only_if: $CIRRUS_TAG == "nightly-build"
gke_container:
dockerfile: private/docker/Dockerfile-build
builder_image_project: ci-cd-215716
builder_image_name: docker-builder-v1
cluster_name: cirrus-euw3a-cluster
zone: europe-west3-a
namespace: default
cpu: 1.5
memory: 6Gb
additional_containers:
- name: mssql
image: mcr.microsoft.com/mssql/server:2017-CU12-ubuntu
port: 1433
cpu: 2
memory: 5Gb
env:
MSSQL_PID: Developer # this is the default edition
ACCEPT_EULA: Y
SA_PASSWORD: sonarqube!1
env:
matrix:
QA_CATEGORY: Upgrade
# No need to clone the full history.
# Depth of 1 is not enough because it would fail the build in case of consecutive pushes
# (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
CIRRUS_CLONE_DEPTH: 50
gradle_cache:
folder: ~/.gradle/caches
script:
- ./private/cirrus/cirrus-qa.sh mssql2017
cleanup_before_cache_script:
- ./private/cirrus/cleanup-gradle-cache.sh


test_upgrade_oracle12_task:
depends_on: build
# Comment the following line and commit with message "DO NOT MERGE" in order to run
# this task on your branch
only_if: $CIRRUS_TAG == "nightly-build"
gke_container:
dockerfile: private/docker/Dockerfile-build
builder_image_project: ci-cd-215716
builder_image_name: docker-builder-v1
cluster_name: cirrus-euw3a-cluster
zone: europe-west3-a
namespace: default
cpu: 1.5
memory: 6Gb
additional_containers:
- name: oracle
image: gcr.io/ci-cd-215716/oracle12:0.0.1 # see https://github.com/SonarSource/vms/blob/master/docker/README.md#oracle-12c to build it
port: 1521
cpu: 2
memory: 5Gb
env:
ORACLE_PWD: sonarqube
env:
matrix:
QA_CATEGORY: Upgrade
# No need to clone the full history.
# Depth of 1 is not enough because it would fail the build in case of consecutive pushes
# (example of error: "Hard resetting to c968ecaf7a1942dacecd78480b3751ac74d53c33...Failed to force reset to c968ecaf7a1942dacecd78480b3751ac74d53c33: object not found!")
CIRRUS_CLONE_DEPTH: 50
gradle_cache:
folder: ~/.gradle/caches
script:
- ./private/cirrus/cirrus-qa.sh oracle12
cleanup_before_cache_script:
- ./private/cirrus/cleanup-gradle-cache.sh

Loading…
Cancel
Save