Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Commit 68fb5b6

Browse files
committed
Fix Travis builds
1 parent 0ceb27e commit 68fb5b6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ script:
2020
-v ~/.cache/electron:/root/.cache/electron \
2121
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
2222
electronuserland/builder \
23-
/bin/bash -c "npm install -g greenkeeper-lockfile@1 && npm run install-linux && greenkeeper-lockfile-update && npm run build && greenkeeper-lockfile-upload"
23+
/bin/bash -c "npm install -g greenkeeper-lockfile@1 && npm install && greenkeeper-lockfile-update && npm run build && greenkeeper-lockfile-upload"
2424
2525
before_cache:
2626
- rm -rf $HOME/.cache/electron-builder/wine

prebuild-minify.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ const recursiveMinify = (dirPath) => {
4444
console.log(filePath+" - ❌");
4545
console.log("");
4646
console.log("");
47-
throw err;
47+
throw minified.error;
4848
}
4949
case "css":
5050
let output = new CleanCSS({level:2}).minify(fs.readFileSync(filePath, {encoding:"utf-8"}));
5151
if (output.errors.length >= 1) {
5252
console.log(filePath+" - ❌");
5353
console.log("");
5454
console.log("");
55-
throw err;
55+
throw output.errors;
5656
} else {
5757
writeMinified(filePath, output.styles);
5858
break;

0 commit comments

Comments
 (0)