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-07-09 08:55:56 +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
|
2023-06-20 00:43:36 +05:30
|
|
|
- rspec migration pg13
|
2021-11-18 22:05:49 +05:30
|
|
|
- rspec-all frontend_fixture
|
2023-06-20 00:43:36 +05:30
|
|
|
- rspec unit pg13
|
|
|
|
- rspec integration pg13
|
|
|
|
- rspec system pg13
|
|
|
|
- rspec background_migration pg13
|
|
|
|
- rspec-ee migration pg13
|
|
|
|
- rspec-ee unit pg13
|
|
|
|
- rspec-ee integration pg13
|
|
|
|
- rspec-ee system pg13
|
|
|
|
- rspec-ee background_migration pg13
|
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
|