Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2016-11-04 03:11:38 +0300
committerMike Greiling <mike@pixelcog.com>2017-01-10 21:30:39 +0300
commit720650d2b0a978700edfd759c0928598f2b0ae0b (patch)
tree90f6905915aecd7542b6204ff066d23b4d0c0dfa /.gitlab-ci.yml
parent24b48a37131546f5927805e3be7d88e07dbfa9af (diff)
precompile webpack assets when testing
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e0e780e1e6b..2ec9dfd2165 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -24,6 +24,9 @@ before_script:
- '[ "$USE_BUNDLE_INSTALL" != "true" ] || retry bundle install --without postgres production --jobs $(nproc) $FLAGS'
- retry gem install knapsack
- '[ "$SETUP_DB" != "true" ] || bundle exec rake db:drop db:create db:schema:load db:migrate add_limits_mysql'
+ - curl --silent --location https://deb.nodesource.com/setup_6.x | bash -
+ - apt-get install --assume-yes nodejs
+ - npm install
stages:
- prepare
@@ -61,6 +64,7 @@ stages:
<<: *dedicated-runner
<<: *use-db
script:
+ - bundle exec rake webpack:compile
- JOB_NAME=( $CI_BUILD_NAME )
- export CI_NODE_INDEX=${JOB_NAME[1]}
- export CI_NODE_TOTAL=${JOB_NAME[2]}
@@ -79,6 +83,7 @@ stages:
<<: *dedicated-runner
<<: *use-db
script:
+ - bundle exec rake webpack:compile
- JOB_NAME=( $CI_BUILD_NAME )
- export CI_NODE_INDEX=${JOB_NAME[1]}
- export CI_NODE_TOTAL=${JOB_NAME[2]}