mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-21 06:50:24 +00:00
Merge pull request #17688 from twbs/fix-17552
Travis: install npm dependencies using shrinkwrap
This commit is contained in:
commit
c240dd3549
3 changed files with 2 additions and 1 deletions
|
|
@ -12,6 +12,7 @@ before_install:
|
|||
- if [ "$TRAVIS_REPO_SLUG" = twbs-savage/bootstrap ]; then export TWBS_DO_VALIDATOR=0; fi
|
||||
install:
|
||||
- bundle install --deployment --jobs=3
|
||||
- cp grunt/npm-shrinkwrap.json ./
|
||||
- npm install -g grunt-cli
|
||||
- npm install
|
||||
cache:
|
||||
|
|
|
|||
|
|
@ -509,7 +509,7 @@ module.exports = function (grunt) {
|
|||
if (err) {
|
||||
grunt.fail.warn(err);
|
||||
}
|
||||
var dest = 'test-infra/npm-shrinkwrap.json';
|
||||
var dest = 'grunt/npm-shrinkwrap.json';
|
||||
fs.renameSync('npm-shrinkwrap.json', dest);
|
||||
grunt.log.writeln('File ' + dest.cyan + ' updated.');
|
||||
done();
|
||||
|
|
|
|||
Loading…
Reference in a new issue