2021-07-05 23:08:11 -04:00
|
|
|
.compress-public: &compress-public
|
|
|
|
- find public -type f -regex '.*\.\(htm\|html\|txt\|text\|js\|json\|css\|svg\|xml\)$' -exec gzip -f -k {} \;
|
|
|
|
- find public -type f -regex '.*\.\(htm\|html\|txt\|text\|js\|json\|css\|svg\|xml\)$' -exec brotli -f -k {} \;
|
|
|
|
|
2019-04-12 04:56:38 -04:00
|
|
|
pages:
|
2019-08-26 16:41:55 -04:00
|
|
|
extends:
|
|
|
|
- .default-retry
|
2020-02-18 10:08:51 -05:00
|
|
|
- .pages:rules
|
2019-04-12 04:56:38 -04:00
|
|
|
stage: pages
|
2021-07-21 08:09:35 -04:00
|
|
|
environment: pages
|
|
|
|
resource_group: pages
|
2021-04-28 08:10:09 -04:00
|
|
|
needs:
|
2021-07-21 08:09:35 -04:00
|
|
|
- job: "rspec:coverage"
|
|
|
|
- job: "coverage-frontend"
|
|
|
|
- job: "compile-production-assets"
|
|
|
|
- job: "compile-storybook"
|
|
|
|
# `update-tests-metadata` only runs on GitLab.com's EE schedules pipelines
|
|
|
|
# while `pages` runs for all the 2-hourly schedules.
|
|
|
|
- job: "update-tests-metadata"
|
|
|
|
optional: true
|
2021-07-05 23:08:11 -04:00
|
|
|
before_script:
|
|
|
|
- apt-get update && apt-get -y install brotli gzip
|
2019-04-12 04:56:38 -04:00
|
|
|
script:
|
|
|
|
- mv public/ .public/
|
|
|
|
- mkdir public/
|
2021-07-26 11:08:30 -04:00
|
|
|
- mkdir -p public/$(dirname "$KNAPSACK_RSPEC_SUITE_REPORT_PATH") public/$(dirname "$FLAKY_RSPEC_SUITE_REPORT_PATH") public/$(dirname "$RSPEC_PACKED_TESTS_MAPPING_PATH")
|
2019-04-12 04:56:38 -04:00
|
|
|
- mv coverage/ public/coverage-ruby/ || true
|
2020-05-28 11:08:02 -04:00
|
|
|
- mv coverage-frontend/ public/coverage-frontend/ || true
|
2021-06-18 08:10:03 -04:00
|
|
|
- mv storybook/public public/storybook || true
|
2019-04-12 04:56:38 -04:00
|
|
|
- cp .public/assets/application-*.css public/application.css || true
|
2021-07-21 08:09:35 -04:00
|
|
|
- mv $KNAPSACK_RSPEC_SUITE_REPORT_PATH public/$KNAPSACK_RSPEC_SUITE_REPORT_PATH || true
|
|
|
|
- mv $FLAKY_RSPEC_SUITE_REPORT_PATH public/$FLAKY_RSPEC_SUITE_REPORT_PATH || true
|
|
|
|
- mv $RSPEC_PACKED_TESTS_MAPPING_PATH.gz public/$RSPEC_PACKED_TESTS_MAPPING_PATH.gz || true
|
2021-07-05 23:08:11 -04:00
|
|
|
- *compress-public
|
2019-04-12 04:56:38 -04:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
2020-05-11 11:09:37 -04:00
|
|
|
expire_in: 31d
|