From e6482387bbe2a957e4dd0850ccda8610845e89d7 Mon Sep 17 00:00:00 2001 From: vantezzen Date: Sun, 8 Mar 2020 09:41:12 +0100 Subject: Outputting file information to debug TravisCI --- scripts/verify-all.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'scripts') diff --git a/scripts/verify-all.js b/scripts/verify-all.js index 76fb61b..adc5a12 100644 --- a/scripts/verify-all.js +++ b/scripts/verify-all.js @@ -73,6 +73,15 @@ const decompress = (src, dest) => new Promise((resolve, reject) => { for (const file of compare.diffSet) { if (file.state !== 'equal') { console.log(`- "${file.name1 || file.name2}" is not equal (${file.type1} in uncompressed, ${file.type2} in archive)`); + + if (file.name1) { + const filePath = path.join(file.path1, file.name1); + console.log('File1:', await fs.read(filePath, 'utf-8')); + } + if (file.name2) { + const filePath = path.join(file.path2, file.name2); + console.log('File2:', await fs.read(filePath, 'utf-8')); + } } } -- cgit v1.2.3-54-g00ecf