summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2016-11-17 23:53:30 +0000
committerLuke "Jared" Bennett <lbennett@gitlab.com>2016-11-19 01:47:59 +0000
commitaed42cc099e496f8facdf7b8db6b8e66910c0dee (patch)
tree30ffbdf229e91d5757c1b55a8e94623cd2efc42c /.gitlab-ci.yml
parent694b55c8281be12d5403dbb8bc6c8951f2716df5 (diff)
downloadgitlab-ce-aed42cc099e496f8facdf7b8db6b8e66910c0dee.tar.gz
Add node_modules cache to npm related buildsadd-node-modules-cache-to-npm-related-builds
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml12
1 files changed, 10 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 436e9ec6c60..de8dccc134d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -271,12 +271,17 @@ rake db:seed_fu:
- log/development.log
teaspoon:
+ cache:
+ paths:
+ - vendor/ruby
+ - node_modules/
stage: test
<<: *use-db
script:
- curl --silent --location https://deb.nodesource.com/setup_6.x | bash -
- apt-get install --assume-yes nodejs
- - npm install --global istanbul
+ - npm install
+ - npm link istanbul
- rake teaspoon
artifacts:
name: coverage-javascript
@@ -346,8 +351,11 @@ coverage:
- coverage/assets/
lint-javascript:
+ cache:
+ paths:
+ - node_modules/
stage: test
- image: "node:latest"
+ image: "node:7.1"
before_script:
- npm install
script: