Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Fix Windows Build (#9)
Browse files Browse the repository at this point in the history
* Move windows build to appveyor and upgrade electron version

* Try without unstable os
  • Loading branch information
jkuester authored and TobiTenno committed Jun 27, 2019
1 parent 819ae3b commit f453a11
Show file tree
Hide file tree
Showing 6 changed files with 917 additions and 562 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
language: node_js
os:
- windows
- osx
- linux
node_js:
Expand Down
20 changes: 20 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
build: off

platform:
- x86
- x64

environment:
nodejs_version: "10"

cache:
- node_modules -> package.json

install:
- ps: Install-Product node $env:nodejs_version
- npm install

test_script:
- node --version
- npm --version
- npm test
4 changes: 2 additions & 2 deletions features/support/steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const createDirectory = (directoryName) => {
};

/* eslint-disable func-names */
Before({ timeout: 60 * 1000 }, function () {
Before({ timeout: 100 * 1000 }, function () {
this.app = new spectron.Application({
path: electronPath,
args: [path.join(__dirname, '../../src/index.js')],
Expand Down Expand Up @@ -105,7 +105,7 @@ Then(/^the report (?:will contain|contains) (\d+) scenarios?$/, function (scenar
}));
});

After(function () {
After({ timeout: 100 * 1000 }, function () {
// Clean up any files that got written.
this.reportFiles.forEach(filePath => fs.unlinkSync(filePath));
this.featureFiles.forEach(filePath => fs.unlinkSync(filePath));
Expand Down
Loading

0 comments on commit f453a11

Please sign in to comment.