-
Notifications
You must be signed in to change notification settings - Fork 43
/
appveyor.yml
47 lines (42 loc) · 1.72 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Test against these versions of Node.js.
environment:
global:
DEBUG: "wdio-screenshot:*"
matrix:
- nodejs_version: "6"
GRAPHICSMAGICK: true
- nodejs_version: "6"
GRAPHICSMAGICK: false
# Install scripts. (runs after repo cloning)
install:
# Install GraphicsMagick
- if %GRAPHICSMAGICK%==true appveyor-retry appveyor DownloadFile http://downloads.sourceforge.net/graphicsmagick/GraphicsMagick-1.3.20-Q8-win32-dll.exe
- if %GRAPHICSMAGICK%==true GraphicsMagick-1.3.20-Q8-win32-dll.exe /SP /VERYSILENT /NORESTART /NOICONS /DIR=%CD%\gm
- if %GRAPHICSMAGICK%==true set PATH=%CD%\gm;%PATH%
# Get the wanted version of Node
- ps: Install-Product node $env:nodejs_version
# Typical npm stuff.
- npm install -g npm@latest || (timeout 30 && npm install -g npm@latest)
- set PATH=%APPDATA%\npm;%PATH%
- npm install || (timeout 30 && npm install)
# change resolution
- ps: Set-DisplayResolution -Width 1920 -Height 1080 -Force
# apply reg hack so that the driver can maintain a connection to the instance of Internet Explorer it creates
- REG ADD "HKLM\SOFTWARE\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BFCACHE" /v iexplore.exe /t REG_DWORD /d 00000000
- REG ADD "HKLM\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BFCACHE" /v iexplore.exe /t REG_DWORD /d 00000000
# scripts to run before tests
before_test:
- ps: $ServerProcess = Start-Process npm -ArgumentList "run server" -PassThru
# test scripts
test_script:
# Output useful info for debugging.
- node --version
- npm --version
# run tests
- npm run test
- npm run test:appveyor
# scripts to run after tests
after_test:
- ps: Stop-Process -Id $ServerProcess.Id
# Don't actually build.
build: off