Add node_modules cache to npm related builds
This commit is contained in:
parent
694b55c828
commit
aed42cc099
2 changed files with 12 additions and 3 deletions
|
@ -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
|
||||||
|
@ -346,8 +351,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:
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
"eslint-plugin-import": "^2.0.1",
|
"eslint-plugin-import": "^2.0.1",
|
||||||
"eslint-plugin-jasmine": "^1.8.1",
|
"eslint-plugin-jasmine": "^1.8.1",
|
||||||
"eslint-plugin-jsx-a11y": "^2.2.3",
|
"eslint-plugin-jsx-a11y": "^2.2.3",
|
||||||
"eslint-plugin-react": "^6.4.1"
|
"eslint-plugin-react": "^6.4.1",
|
||||||
|
"istanbul": "^0.4.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue