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

71 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: []
2019-12-21 20:55:43 +05:30
before_script:
2020-03-13 15:44:24 +05:30
- '[ "$FOSS_ONLY" = "1" ] && rm -rf ee/ qa/spec/ee/ qa/qa/specs/features/ee/ qa/qa/ee/ qa/qa/ee.rb'
2019-12-21 20:55:43 +05:30
- cd qa/
- bundle install --clean --jobs=$(nproc) --path=vendor --retry=3 --quiet
- bundle check
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
- .shared:rules:update-cache
stage: prepare
script:
- echo "Cache has been updated and ready to be uploaded."
cache:
policy: push # We want to rebuild the cache from scratch to ensure stale dependencies are cleaned up.
2019-10-12 21:52:04 +05:30
.package-and-qa-base:
2019-09-04 21:01:54 +05:30
image: ruby:2.6-alpine
2019-12-04 20:38:33 +05:30
stage: qa
2019-07-31 22:56:46 +05:30
retry: 0
script:
- source scripts/utils.sh
- install_gitlab_gem
- ./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