summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorJacob Schatz <jschatz@gitlab.com>2017-02-23 18:06:36 +0000
committerJacob Schatz <jschatz@gitlab.com>2017-02-23 18:06:36 +0000
commit62829b6bd885ef09d2060d1230c5b5c4a1e62eb1 (patch)
tree3c70b5ef0de4966b7051c40b08dce3e1242349d1 /.gitlab-ci.yml
parent43fa9c1f1a40903f6416b954c326d67259c7290a (diff)
parent1c4b8c1a50f6df18811c3af1820a76565da25619 (diff)
downloadgitlab-ce-62829b6bd885ef09d2060d1230c5b5c4a1e62eb1.tar.gz
Merge branch '28450-test-compiling-frontend-assets-for-production-in-ci' into 'master'
Resolve "Test compiling frontend assets for production in CI" Closes #28450 See merge request !9396
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 20f410d0b4c..e7a279c828b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -240,6 +240,25 @@ rake db:seed_fu:
paths:
- log/development.log
+rake gitlab:assets:compile:
+ stage: test
+ <<: *dedicated-runner
+ dependencies: []
+ variables:
+ NODE_ENV: "production"
+ RAILS_ENV: "production"
+ SETUP_DB: "false"
+ USE_DB: "false"
+ SKIP_STORAGE_VALIDATION: "true"
+ WEBPACK_REPORT: "true"
+ script:
+ - bundle exec rake yarn:install gitlab:assets:compile
+ artifacts:
+ name: webpack-report
+ expire_in: 31d
+ paths:
+ - webpack-report/
+
rake karma:
cache:
paths:
@@ -388,6 +407,7 @@ pages:
dependencies:
- coverage
- rake karma
+ - rake gitlab:assets:compile
- lint:javascript:report
script:
- mv public/ .public/
@@ -395,6 +415,7 @@ pages:
- mv coverage/ public/coverage-ruby/ || true
- mv coverage-javascript/ public/coverage-javascript/ || true
- mv eslint-report.html public/ || true
+ - mv webpack-report/ public/webpack-report/ || true
artifacts:
paths:
- public