mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-17 19:06:40 +02:00
Merge pull request #17688 from twbs/fix-17552
Travis: install npm dependencies using shrinkwrap
This commit is contained in:
@@ -12,6 +12,7 @@ before_install:
|
|||||||
- if [ "$TRAVIS_REPO_SLUG" = twbs-savage/bootstrap ]; then export TWBS_DO_VALIDATOR=0; fi
|
- if [ "$TRAVIS_REPO_SLUG" = twbs-savage/bootstrap ]; then export TWBS_DO_VALIDATOR=0; fi
|
||||||
install:
|
install:
|
||||||
- bundle install --deployment --jobs=3
|
- bundle install --deployment --jobs=3
|
||||||
|
- cp grunt/npm-shrinkwrap.json ./
|
||||||
- npm install -g grunt-cli
|
- npm install -g grunt-cli
|
||||||
- npm install
|
- npm install
|
||||||
cache:
|
cache:
|
||||||
|
@@ -509,7 +509,7 @@ module.exports = function (grunt) {
|
|||||||
if (err) {
|
if (err) {
|
||||||
grunt.fail.warn(err);
|
grunt.fail.warn(err);
|
||||||
}
|
}
|
||||||
var dest = 'test-infra/npm-shrinkwrap.json';
|
var dest = 'grunt/npm-shrinkwrap.json';
|
||||||
fs.renameSync('npm-shrinkwrap.json', dest);
|
fs.renameSync('npm-shrinkwrap.json', dest);
|
||||||
grunt.log.writeln('File ' + dest.cyan + ' updated.');
|
grunt.log.writeln('File ' + dest.cyan + ' updated.');
|
||||||
done();
|
done();
|
||||||
|
Reference in New Issue
Block a user