Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #122 from protonmail-desktop/appveyor-integration
Browse files Browse the repository at this point in the history
Appveyor integration
  • Loading branch information
mtaberna committed Sep 8, 2017
2 parents 4082d3f + 674efbc commit fc2fcb5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
17 changes: 13 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,27 @@ skip_tags: true

environment:
matrix:
- nodejs_version: "6"
- nodejs_version: 8

cache:
- node_modules -> package.json
- node_modules -> package-lock.json

install:
- ps: Install-Product node $env:nodejs_version
- npm install npm
# npm 5.4 fails due to https://github.com/npm/npm/issues/18287
- npm install npm@5.3
- .\node_modules\.bin\npm install

test_script:
- node --version
- .\node_modules\.bin\npm --version
- .\node_modules\.bin\npm test
- .\node_modules\.bin\npm run e2e

on_failure:
- for /f usebackq %F in (`npm config get cache`) do echo %F
- echo %NPM_CONFIG_PATH%
- 7z a e2e_test_logs.zip %APPVEYOR_BUILD_FOLDER%\*.logs %APPVEYOR_BUILD_FOLDER%\errorShot-*.png %NPM_CONFIG_PATH%\_logs\*.log

artifacts:
- path: e2e_test_logs.zip
name: e2eTestLogs
4 changes: 2 additions & 2 deletions e2e/unread-notifications-count.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import { AddCommands } from './commands';
.click('.etabs-tabs .etabs-tab:first-child')
.pause(5000)
.keys(['Tab'])
.pause(1000)
.pause(2000)
.keys(process.env.PROTONMAIL_TEST_PASSWORD)
.pause(1000)
.pause(2000)
.keys(['Enter'])
.pause(10000)
/**
Expand Down
2 changes: 1 addition & 1 deletion src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import createWindow from './helpers/window';
import { migrateSettings } from './migrate-settings';

const settings = require('electron-settings');
const appMenu = require('./menu');
const tray = require('./tray');

require('electron-dl')({saveAs: true});
Expand Down Expand Up @@ -103,6 +102,7 @@ function createMainWindow() {
}

app.on('ready', () => {
const appMenu = require('./menu');
Menu.setApplicationMenu(appMenu);
mainWindow = createMainWindow();
tray.create(mainWindow);
Expand Down

0 comments on commit fc2fcb5

Please sign in to comment.