Hides display on MacOS

now displays logs after tests
This commit is contained in:
Kylart 2019-07-03 23:19:14 +02:00
parent 7c2896c4f8
commit 40221a337d
3 changed files with 16 additions and 0 deletions

View File

@ -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

View File

@ -2,6 +2,11 @@ image: Visual Studio 2017
os: unstable
cache:
- node_modules -> package.json
skip_tags: true
platform:
- x64

View File

@ -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()
})
}