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

41 lines
1.6 KiB
YAML
Raw Normal View History

2021-09-30 23:02:18 +05:30
.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-07-31 22:56:46 +05:30
pages:
2019-12-04 20:38:33 +05:30
extends:
- .default-retry
2020-03-13 15:44:24 +05:30
- .pages:rules
2019-07-31 22:56:46 +05:30
stage: pages
2021-10-27 15:23:28 +05:30
environment: pages
resource_group: pages
2021-06-08 01:23:25 +05:30
needs:
2021-10-27 15:23:28 +05:30
- job: "rspec:coverage"
- job: "coverage-frontend"
- job: "karma"
- 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-09-30 23:02:18 +05:30
before_script:
- apt-get update && apt-get -y install brotli gzip
2019-07-31 22:56:46 +05:30
script:
- mv public/ .public/
- mkdir public/
2021-10-27 15:23:28 +05:30
- mkdir -p public/$(dirname "$KNAPSACK_RSPEC_SUITE_REPORT_PATH") public/$(dirname "$FLAKY_RSPEC_SUITE_REPORT_PATH") public/$(dirname "$RSPEC_PACKED_TESTS_MAPPING_PATH")
2019-07-31 22:56:46 +05:30
- mv coverage/ public/coverage-ruby/ || true
2020-06-23 00:09:42 +05:30
- mv coverage-frontend/ public/coverage-frontend/ || true
2019-07-31 22:56:46 +05:30
- mv coverage-javascript/ public/coverage-javascript/ || true
2021-09-30 23:02:18 +05:30
- mv storybook/public public/storybook || true
2019-07-31 22:56:46 +05:30
- cp .public/assets/application-*.css public/application.css || true
2021-10-27 15:23:28 +05:30
- 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-09-30 23:02:18 +05:30
- *compress-public
2019-07-31 22:56:46 +05:30
artifacts:
paths:
- public
2020-05-24 23:13:21 +05:30
expire_in: 31d