From 1788ef29aab405d13a0fb4d8efb212ce10a132ea Mon Sep 17 00:00:00 2001 From: Vincent Fugnitto Date: Tue, 10 Sep 2019 08:16:47 -0400 Subject: [PATCH] Add appveyor.yml config file Fixes #42 - add `appveyor.yml` config file inspired by the main repository in order to control the behavior of Appveyor during pull requests. Signed-off-by: Vincent Fugnitto --- appveyor.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..e3b3883 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,29 @@ +shallow_clone: true + +environment: + matrix: + - nodejs_version: "10" + +platform: + - x64 + +branches: + only: + - master + +install: + - ps: Install-Product node $env:nodejs_version $env:platform + - npm install yarn@1.7.0 -g + - netsh advfirewall firewall add rule name="SeleniumIn" dir=in action=allow protocol=TCP localport=4444 + - netsh advfirewall firewall add rule name="SeleniumOut" dir=out action=allow protocol=TCP localport=4444 + - cmd: set THEIA_SKIP_NPM_PREPARE=1 && yarn install + - npx rimraf node_modules/@theia/electron/download + +before_build: + - node --version && npm --version && yarn --version && python --version + +build_script: + - yarn prepare + +test_script: + - appveyor-retry yarn test