1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Gulp: migrate baseline target from make.js

This commit is contained in:
Tim van der Meij 2017-02-21 23:24:07 +01:00
parent da08b801a5
commit 0f4e6fdb9d
No known key found for this signature in database
GPG key ID: 8C3FD2925A5F2762
2 changed files with 39 additions and 25 deletions

26
make.js
View file

@ -498,31 +498,7 @@ target.botmakeref = function() {
// Baseline operation
//
target.baseline = function() {
cd(ROOT_DIR);
echo();
echo('### Creating baseline environment');
var baselineCommit = env['BASELINE'];
if (!baselineCommit) {
echo('Baseline commit is not provided. Please specify BASELINE variable');
exit(1);
}
if (!test('-d', BUILD_DIR)) {
mkdir(BUILD_DIR);
}
var BASELINE_DIR = BUILD_DIR + 'baseline';
if (test('-d', BASELINE_DIR)) {
cd(BASELINE_DIR);
exec('git fetch origin');
} else {
cd(BUILD_DIR);
exec('git clone .. baseline');
cd(ROOT_DIR + BASELINE_DIR);
}
exec('git checkout ' + baselineCommit);
execGulp('baseline');
};
target.mozcentralbaseline = function() {