diff options
author | vantezzen <hello@vantezzen.io> | 2020-03-08 09:52:31 +0100 |
---|---|---|
committer | vantezzen <hello@vantezzen.io> | 2020-03-08 09:52:31 +0100 |
commit | 662e0a640fe24c29a247075a42c4b66122284f91 (patch) | |
tree | e65f20a75eabd1e9cfd881e4afac5357c1c65c64 /scripts | |
parent | Add diff reason to verify output (diff) | |
download | ferdium-recipes-662e0a640fe24c29a247075a42c4b66122284f91.tar.gz ferdium-recipes-662e0a640fe24c29a247075a42c4b66122284f91.tar.zst ferdium-recipes-662e0a640fe24c29a247075a42c4b66122284f91.zip |
Testing ingoring line endings and white spaces for TravisCI
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/verify-all.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/verify-all.js b/scripts/verify-all.js index 3601055..af0bab9 100644 --- a/scripts/verify-all.js +++ b/scripts/verify-all.js | |||
@@ -61,7 +61,9 @@ const decompress = (src, dest) => new Promise((resolve, reject) => { | |||
61 | const compare = dircompare.compareSync(uncompressedRecipe, tempUncompressed, { | 61 | const compare = dircompare.compareSync(uncompressedRecipe, tempUncompressed, { |
62 | compareContent: true, | 62 | compareContent: true, |
63 | // Don't fail because of DS_Store files | 63 | // Don't fail because of DS_Store files |
64 | excludeFilter: '.DS_Store' | 64 | excludeFilter: '.DS_Store', |
65 | ignoreLineEnding: true, | ||
66 | ignoreWhiteSpaces: true, | ||
65 | }); | 67 | }); |
66 | 68 | ||
67 | if (compare.same) { | 69 | if (compare.same) { |
@@ -72,7 +74,7 @@ const decompress = (src, dest) => new Promise((resolve, reject) => { | |||
72 | // Output information about differences | 74 | // Output information about differences |
73 | for (const file of compare.diffSet) { | 75 | for (const file of compare.diffSet) { |
74 | if (file.state !== 'equal') { | 76 | if (file.state !== 'equal') { |
75 | console.log(`- "${file.name1 || file.name2}" is not equal (${file.type1} in uncompressed, ${file.type2} in archive => ${file.reason})`); | 77 | console.log(`- "${file.name1 || file.name2}" is not equal (${file.type1} in uncompressed, ${file.type2} in archive)`); |
76 | 78 | ||
77 | if (file.name1) { | 79 | if (file.name1) { |
78 | const filePath = path.join(file.path1, file.name1); | 80 | const filePath = path.join(file.path1, file.name1); |