From 40221a337d0f4a8def06f7abfbe72c949710d43f Mon Sep 17 00:00:00 2001 From: Kylart Date: Wed, 3 Jul 2019 23:19:14 +0200 Subject: [PATCH] Hides display on MacOS now displays logs after tests --- .travis.yml | 2 ++ appveyor.yml | 5 +++++ test/hooks.js | 9 +++++++++ 3 files changed, 16 insertions(+) diff --git a/.travis.yml b/.travis.yml index c9eb66a..67da7d6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,6 +20,8 @@ jobs: - ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder - MATRIX_EVAL="brew install gcc && CC=gcc-5 && CXX=g++-5" name: Mac + before_script: + - "export DISPLAY=:99.0" script: - npm run lint - npm run pack diff --git a/appveyor.yml b/appveyor.yml index 2645e2e..9b6abcb 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -2,6 +2,11 @@ image: Visual Studio 2017 os: unstable +cache: + - node_modules -> package.json + +skip_tags: true + platform: - x64 diff --git a/test/hooks.js b/test/hooks.js index 40b42e6..28b8695 100644 --- a/test/hooks.js +++ b/test/hooks.js @@ -21,6 +21,15 @@ module.exports = function () { }) after(async function () { + const rendererLogs = await this.app.client.getRenderProcessLogs() + const mainLogs = await this.app.client.getMainProcessLogs() + + console.log('RENDERER LOGS') + rendererLogs.forEach((log) => console.log(log)) + + console.log('MAIN LOGS') + mainLogs.forEach((log) => console.log(log)) + return this.app.stop() }) }