Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Fix npm shrinkwrap #11110

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,16 @@ matrix:
- env: "JOB=e2e TEST_TARGET=jquery BROWSER_PROVIDER=browserstack"

install:
- du -sh ./node_modules ./bower_components/ ./docs/bower_components/
# Check the size of caches
- du -sh ./node_modules ./bower_components/ ./docs/bower_components/ || true
# - npm config set registry http://23.251.144.68
# Disable the spinner, it looks bad on Travis
- npm config set spin false
# Log HTTP requests
- npm config set loglevel http
- time npm install
- npm install -g npm@2.5
# Instal npm dependecies and ensure that npm cache is not stale
- scripts/npm/install-dependencies.sh

before_script:
- mkdir -p $LOGS_DIR
Expand Down
12 changes: 8 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ module.exports = function(grunt) {
NG_VERSION.cdn = versionInfo.cdnVersion;
var dist = 'angular-'+ NG_VERSION.full;

//global beforeEach
util.init();


//config
grunt.initConfig({
NG_VERSION: NG_VERSION,
Expand Down Expand Up @@ -285,6 +281,10 @@ module.exports = function(grunt) {
},

shell: {
"npm-install": {
command: 'scripts/npm/install-dependencies.sh'
},

"promises-aplus-tests": {
options: {
stdout: false,
Expand All @@ -311,6 +311,10 @@ module.exports = function(grunt) {
}
});

// global beforeEach task
if (!process.env.TRAVIS) {
grunt.task.run('shell:npm-install');
}

//alias tasks
grunt.registerTask('test', 'Run unit, docs and e2e tests with Karma', ['jshint', 'jscs', 'package','test:unit','test:promises-aplus', 'tests:docs', 'test:protractor']);
Expand Down
7 changes: 0 additions & 7 deletions lib/grunt/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@ var CSP_CSS_HEADER = '/* Include this file in your html if you are using the CSP

module.exports = {

init: function() {
if (!process.env.TRAVIS) {
shell.exec('npm install');
}
},


startKarma: function(config, singleRun, done){
var browsers = grunt.option('browsers');
var reporters = grunt.option('reporters');
Expand Down
Loading