debian-mirror-gitlab/.gitlab/ci/qa.gitlab-ci.yml

74 lines
1.5 KiB
YAML
Raw Normal View History

2019-12-21 20:55:43 +05:30
.qa-job-base:
extends:
- .default-retry
2020-06-23 00:09:42 +05:30
- .qa-cache
2019-12-21 20:55:43 +05:30
stage: test
2020-04-08 14:13:33 +05:30
needs: []
2021-06-08 01:23:25 +05:30
variables:
USE_BUNDLE_INSTALL: "false"
SETUP_DB: "false"
2021-11-11 11:23:49 +05:30
QA_EXPORT_TEST_METRICS: "false"
2019-12-21 20:55:43 +05:30
before_script:
2021-06-08 01:23:25 +05:30
- !reference [.default-before_script, before_script]
2019-12-21 20:55:43 +05:30
- cd qa/
2021-06-08 01:23:25 +05:30
- bundle_install_script
2019-12-21 20:55:43 +05:30
qa:internal:
2020-03-13 15:44:24 +05:30
extends:
- .qa-job-base
- .qa:rules:ee-and-foss
script:
- bundle exec rspec
qa:internal-as-if-foss:
extends:
2020-06-23 00:09:42 +05:30
- qa:internal
2020-05-24 23:13:21 +05:30
- .qa:rules:as-if-foss
2020-03-13 15:44:24 +05:30
- .as-if-foss
2019-12-21 20:55:43 +05:30
qa:selectors:
2020-03-13 15:44:24 +05:30
extends:
- .qa-job-base
- .qa:rules:ee-and-foss
2019-12-21 20:55:43 +05:30
script:
- bundle exec bin/qa Test::Sanity::Selectors
2020-03-13 15:44:24 +05:30
qa:selectors-as-if-foss:
2019-12-21 20:55:43 +05:30
extends:
- qa:selectors
2020-05-24 23:13:21 +05:30
- .qa:rules:as-if-foss
2020-03-13 15:44:24 +05:30
- .as-if-foss
2019-12-21 20:55:43 +05:30
2020-06-23 00:09:42 +05:30
update-qa-cache:
extends:
- .qa-job-base
2021-06-08 01:23:25 +05:30
- .qa-cache-push
2020-06-23 00:09:42 +05:30
- .shared:rules:update-cache
stage: prepare
script:
- echo "Cache has been updated and ready to be uploaded."
2019-10-12 21:52:04 +05:30
.package-and-qa-base:
2021-03-11 19:13:27 +05:30
image: ${GITLAB_DEPENDENCY_PROXY}ruby:2.7-alpine
2019-12-04 20:38:33 +05:30
stage: qa
2019-07-31 22:56:46 +05:30
retry: 0
2021-10-27 15:23:28 +05:30
before_script:
2019-07-31 22:56:46 +05:30
- source scripts/utils.sh
- install_gitlab_gem
2021-10-27 15:23:28 +05:30
script:
2019-07-31 22:56:46 +05:30
- ./scripts/trigger-build omnibus
2019-10-12 21:52:04 +05:30
2019-12-04 20:38:33 +05:30
package-and-qa:
extends:
- .package-and-qa-base
2020-03-13 15:44:24 +05:30
- .qa:rules:package-and-qa
2020-10-24 23:57:45 +05:30
# This job often times out, so temporarily use private runners and a long timeout: https://gitlab.com/gitlab-org/gitlab/-/issues/238563
tags:
- prm
timeout: 4h
2020-04-22 19:07:51 +05:30
needs:
- job: build-qa-image
artifacts: false
2020-05-24 23:13:21 +05:30
- job: build-assets-image
2020-04-22 19:07:51 +05:30
artifacts: false