forked from mozilla/botio-files-pdfjs
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathon_cmd_fonttest.js
More file actions
37 lines (29 loc) · 815 Bytes
/
on_cmd_fonttest.js
File metadata and controls
37 lines (29 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
var botio = require(process.env['BOTIO_MODULE']);
require('shelljs/global');
var fail = false;
exec('npm install', {async:false});
exec('git submodule init', {async:false});
exec('git submodule update', {async:false});
silent(true);
//
// Deploy custom files
//
echo();
echo('>> Deploying custom files');
cp('-f', __dirname+'/test-files/browser_manifest.json', './test/resources/browser_manifests');
//
// Font Tests
//
echo();
echo('>> Font Tests');
exec('gulp fonttest', {silent:false, async:true}, function(error, output) {
var successMatch = output.match(/All font tests passed/g);
if (successMatch) {
botio.message('+ **Font Tests:** Passed');
} else {
botio.message('+ **Font Tests:** FAILED');
fail = true; // non-fatal, continue
}
if (fail)
exit(1);
}); // exec font tests