gitlab-org--gitlab-foss/.gitlab/ci/test-metadata.gitlab-ci.yml

49 lines
1.4 KiB
YAML
Raw Normal View History

.tests-metadata-state:
image: ${GITLAB_DEPENDENCY_PROXY}ruby:2.7
2019-04-12 04:56:38 -04:00
before_script:
- source scripts/utils.sh
artifacts:
expire_in: 31d
paths:
- knapsack/
- rspec_flaky/
- rspec_profiling/
- crystalball/packed-mapping.json.gz
2019-04-12 04:56:38 -04:00
retrieve-tests-metadata:
extends:
- .tests-metadata-state
- .test-metadata:rules:retrieve-tests-metadata
2019-04-12 04:56:38 -04:00
stage: prepare
script:
- install_gitlab_gem
- source ./scripts/rspec_helpers.sh
- retrieve_tests_metadata
2019-04-12 04:56:38 -04:00
update-tests-metadata:
extends:
- .tests-metadata-state
- .test-metadata:rules:update-tests-metadata
2019-04-12 04:56:38 -04:00
stage: post-test
dependencies:
- retrieve-tests-metadata
- setup-test-env
- rspec migration pg12
- rspec-all frontend_fixture
- rspec unit pg12
- rspec integration pg12
- rspec system pg12
- rspec-ee migration pg12
- rspec-ee unit pg12
- rspec-ee integration pg12
- rspec-ee system pg12
- rspec-ee unit pg12 geo
- rspec-ee integration pg12 geo
- rspec-ee system pg12 geo
2019-04-12 04:56:38 -04:00
script:
- run_timed_command "retry gem install fog-aws mime-types activesupport rspec_profiling postgres-copy --no-document"
- source ./scripts/rspec_helpers.sh
- test -f rspec_flaky/report-suite.json || echo -e "\e[31m" 'Consider add ~"pipeline:run-all-rspec" to run full rspec jobs' "\e[0m"
- update_tests_metadata
- update_tests_mapping