forked from mochajs/mocha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
76 lines (71 loc) · 2.39 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
###
### appveyor.yml
###
## General configuration
version: '{build}'
skip_commits:
message: /\[ci\s+skip\]/
## Environment configuration
shallow_clone: true
clone_depth: 1
environment:
matrix:
- nodejs_version: '12'
- nodejs_version: '10'
- nodejs_version: '8'
matrix:
fast_finish: true
install:
## Manual Growl install
- ps: Add-AppveyorMessage "Installing Growl..."
- ps: $seaURL = "https://github.com/briandunnington/growl-for-windows/releases/download/final/GrowlInstaller.exe"
- ps: $seaPath = "$($env:USERPROFILE)\GrowlInstaller.exe"
- ps: $webclient = New-Object Net.WebClient
- ps: $webclient.DownloadFile($seaURL, $seaPath)
- ps: mkdir C:\GrowlInstaller | out-null
- ps: 7z x $seaPath -oC:\GrowlInstaller | out-null
- ps: cmd /c start /wait msiexec /i C:\GrowlInstaller\Growl_v2.0.msi /quiet
- ps: $env:path = "C:\Program Files (x86)\Growl for Windows;$env:path"
## Growl requires some time before it's ready to handle notifications
- ps: Add-AppveyorMessage "Starting Growl service..."
- ps: Start-Process -NoNewWindow Growl
## Node-related installs
- ps: Add-AppveyorMessage "Installing Node..."
- set PATH=%APPDATA%\npm;C:\MinGW\bin;%PATH%
## Prefer pre-installed Node versions, with fallback to manual update
- ps: |
try {
Install-Product node $env:nodejs_version $env:platform
} catch {
Add-AppveyorMessage " install failed - attempting manual update..."
Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:platform
}
- ps: Add-AppveyorMessage "Installing npm..."
- npm install -g npm
## Mocha-related package installs
- ps: Add-AppveyorMessage "Installing Mocha dependencies..."
- npm ci --ignore-scripts
## Build configuration
platform:
- x64
build: script
build_script:
- ps: Add-AppveyorMessage "Verify Growl responding..."
- ps: growlnotify test
## Test configuration
before_test:
- set CI=true
test_script:
- ps: Add-AppveyorMessage "Displaying version information"
- ps: (Get-ComputerInfo -Property OsName,OsVersion,OsArchitecture | Format-Table -HideTableHeaders -AutoSize | Out-String).Trim()
- node --version
- npm --version
- ps: Add-AppveyorMessage "Running tests..."
- npm start test.node
- ps: Add-AppveyorMessage "Done"
## Notifications
notifications:
- provider: Email
on_build_success: false
on_build_failure: false
on_build_status_changed: false