Skip to content

Commit

Permalink
Use npm ci instead of npm install
Browse files Browse the repository at this point in the history
This commit mirrors the change from
mozilla/pdf.js#18353 for the bots. Refer to
https://docs.npmjs.com/cli/v10/commands/npm-ci for more information.
  • Loading branch information
timvandermeij committed Aug 10, 2024
1 parent 46914fc commit 0e6449e
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions on_cmd_browsertest.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require('shelljs/global');

var fail = false;

exec('npm install', {async:true}, function() {
exec('npm ci', {async:true}, function() {

silent(true);

Expand Down Expand Up @@ -101,4 +101,4 @@ silent(true);
}); // exec test
})(); // runTesting

}); // npm install
}); // npm ci
2 changes: 1 addition & 1 deletion on_cmd_integrationtest.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require('shelljs/global');

var fail = false;

exec('npm install', {async:false});
exec('npm ci', {async:false});

silent(true);

Expand Down
4 changes: 2 additions & 2 deletions on_cmd_makeref.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var botio = require(process.env['BOTIO_MODULE']);
require('shelljs/global');

exec('npm install', {async:true}, function() {
exec('npm ci', {async:true}, function() {
silent(true);

//
Expand Down Expand Up @@ -61,4 +61,4 @@ exec('npm install', {async:true}, function() {
mkdir('-p', __dirname+'/pdf-cache');
cp('./test/pdfs/*.pdf', __dirname+'/pdf-cache');
}); // exec makeref
}); // npm install
}); // npm ci
2 changes: 1 addition & 1 deletion on_cmd_preview.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var botio = require(process.env['BOTIO_MODULE']);
require('shelljs/global');
exec('npm install');
exec('npm ci');

echo();
echo('>> Making web site');
Expand Down
4 changes: 2 additions & 2 deletions on_cmd_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require('shelljs/global');

var fail = false;

exec('npm install', {async:true}, function() {
exec('npm ci', {async:true}, function() {

silent(true);

Expand Down Expand Up @@ -115,4 +115,4 @@ silent(true);
}); // exec test
})(); // runTesting

}); // npm install
}); // npm ci
2 changes: 1 addition & 1 deletion on_cmd_unittest.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require('shelljs/global');

var fail = false;

exec('npm install', {async:false});
exec('npm ci', {async:false});

silent(true);

Expand Down
4 changes: 2 additions & 2 deletions on_cmd_xfatest.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require('shelljs/global');

var fail = false;

exec('npm install', {async:true}, function() {
exec('npm ci', {async:true}, function() {

silent(true);

Expand Down Expand Up @@ -115,4 +115,4 @@ silent(true);
}); // exec test
})(); // runTesting

}); // npm install
}); // npm ci

0 comments on commit 0e6449e

Please sign in to comment.