Commit 35d6ea4f authored by Robert Speicher's avatar Robert Speicher

Merge branch 'add-node-modules-cache-to-npm-related-builds' into 'master'

Add node_modules cache to npm related builds

See merge request !7548
parents e76c195e aed42cc0
...@@ -271,12 +271,17 @@ rake db:seed_fu: ...@@ -271,12 +271,17 @@ rake db:seed_fu:
- log/development.log - log/development.log
teaspoon: teaspoon:
cache:
paths:
- vendor/ruby
- node_modules/
stage: test stage: test
<<: *use-db <<: *use-db
script: script:
- curl --silent --location https://deb.nodesource.com/setup_6.x | bash - - curl --silent --location https://deb.nodesource.com/setup_6.x | bash -
- apt-get install --assume-yes nodejs - apt-get install --assume-yes nodejs
- npm install --global istanbul - npm install
- npm link istanbul
- rake teaspoon - rake teaspoon
artifacts: artifacts:
name: coverage-javascript name: coverage-javascript
...@@ -345,8 +350,11 @@ coverage: ...@@ -345,8 +350,11 @@ coverage:
- coverage/assets/ - coverage/assets/
lint-javascript: lint-javascript:
cache:
paths:
- node_modules/
stage: test stage: test
image: "node:latest" image: "node:7.1"
before_script: before_script:
- npm install - npm install
script: script:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment