forked from bbyars/mountebank
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
39 lines (29 loc) · 894 Bytes
/
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
version: '{build}'
shallow_clone: true
os:
- Windows Server 2012
platform:
- x64
environment:
global:
MB_SLOW_TEST_TIMEOUT: 45000
matrix:
- MB_APPVEYOR_CONFIG: "NODE_VERSION=10|MB_GRUNT_TASK=outOfProcessImposters default|MB_PORT=3535"
- MB_APPVEYOR_CONFIG: "NODE_VERSION=6|MB_GRUNT_TASK=test:zip|MB__PORT=3535"
cache:
- node_modules -> package.json
init:
- git config --global core.autocrlf true
install:
- ps: |
$version = Get-ChildItem env:MB_VERSION
ForEach ($var in (Get-ChildItem env:MB_APPVEYOR_CONFIG).Value.Split("|")) {
$key = $var.Split("=")[0]
$value = $var.Split("=")[1].Replace("MB_VERSION", $version.Value);
Set-Item env:$key $value
}
- ps: Install-Product node $env:NODE_VERSION
build_script:
- node --version && npm --version
- build.bat %MB_GRUNT_TASK%
test: off