debian-mirror-gitlab/.gitlab/ci/test-metadata.gitlab-ci.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.6 KiB
YAML
Raw Normal View History

2019-12-04 20:38:33 +05:30
.tests-metadata-state:
2022-11-25 23:54:43 +05:30
image: ${GITLAB_DEPENDENCY_PROXY_ADDRESS}ruby:${RUBY_VERSION}
2019-07-31 22:56:46 +05:30
before_script:
- source scripts/utils.sh
artifacts:
expire_in: 31d
paths:
- knapsack/
2022-04-04 11:22:00 +05:30
- rspec/
2022-01-26 12:08:38 +05:30
- crystalball/
2022-04-04 11:22:00 +05:30
when: always
2019-07-31 22:56:46 +05:30
retrieve-tests-metadata:
2020-03-13 15:44:24 +05:30
extends:
- .tests-metadata-state
- .test-metadata:rules:retrieve-tests-metadata
2023-03-17 16:20:25 +05:30
# We use a smaller image for this job only (update-tests-metadata compiles some gems)
image: ${GITLAB_DEPENDENCY_PROXY_ADDRESS}ruby:${RUBY_VERSION}-slim
2019-07-31 22:56:46 +05:30
stage: prepare
script:
2023-03-17 16:20:25 +05:30
- apt-get update && apt-get install -y curl # Not present in ruby-slim, so we add it manually
2021-02-22 17:27:13 +05:30
- install_gitlab_gem
- source ./scripts/rspec_helpers.sh
2019-12-21 20:55:43 +05:30
- retrieve_tests_metadata
2019-07-31 22:56:46 +05:30
update-tests-metadata:
2020-03-13 15:44:24 +05:30
extends:
- .tests-metadata-state
- .test-metadata:rules:update-tests-metadata
2019-07-31 22:56:46 +05:30
stage: post-test
2020-05-24 23:13:21 +05:30
dependencies:
2021-11-11 11:23:49 +05:30
- retrieve-tests-metadata
2022-01-26 12:08:38 +05:30
- generate-frontend-fixtures-mapping
2020-05-24 23:13:21 +05:30
- setup-test-env
2021-06-08 01:23:25 +05:30
- rspec migration pg12
2021-11-18 22:05:49 +05:30
- rspec-all frontend_fixture
2021-06-08 01:23:25 +05:30
- rspec unit pg12
- rspec integration pg12
- rspec system pg12
2023-04-23 21:23:45 +05:30
- rspec background_migration pg12
2021-06-08 01:23:25 +05:30
- rspec-ee migration pg12
- rspec-ee unit pg12
- rspec-ee integration pg12
- rspec-ee system pg12
2023-04-23 21:23:45 +05:30
- rspec-ee background_migration pg12
2019-07-31 22:56:46 +05:30
script:
2021-01-03 14:25:43 +05:30
- run_timed_command "retry gem install fog-aws mime-types activesupport rspec_profiling postgres-copy --no-document"
- source ./scripts/rspec_helpers.sh
2022-04-04 11:22:00 +05:30
- test -f "${FLAKY_RSPEC_SUITE_REPORT_PATH}" || echo -e "\e[31m" 'Consider add ~"pipeline:run-all-rspec" to run full rspec jobs' "\e[0m"
2019-12-21 20:55:43 +05:30
- update_tests_metadata
2021-01-29 00:20:46 +05:30
- update_tests_mapping