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

64 lines
1.2 KiB
YAML
Raw Normal View History

2019-12-21 20:55:43 +05:30
.qa-job-base:
extends:
- .default-retry
stage: test
2020-04-08 14:13:33 +05:30
needs: []
2019-12-21 20:55:43 +05:30
cache:
key: "qa-framework-jobs:v1"
paths:
- vendor/ruby
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:
- .qa-job-base
- .qa:rules:ee-only
- .as-if-foss
2019-12-21 20:55:43 +05:30
script:
- bundle exec rspec
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-03-13 15:44:24 +05:30
- .qa:rules:ee-only
- .as-if-foss
2019-12-21 20:55:43 +05:30
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
dependencies: []
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-04-22 19:07:51 +05:30
needs:
- job: build-qa-image
artifacts: false
- job: gitlab:assets:compile pull-cache
artifacts: false
2019-12-26 22:10:19 +05:30
allow_failure: true