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:
parent
da08b801a5
commit
0f4e6fdb9d
2 changed files with 39 additions and 25 deletions
26
make.js
26
make.js
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue