forked from microsoft/nodejstools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
88 lines (79 loc) · 2.69 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
77
78
79
80
81
82
83
84
85
86
87
88
-
version: 1.0.{build}
branches:
except:
- v1.1.x
- v1.2.x
skip_tags: true
image: Visual Studio 2015
environment:
matrix:
- nodejs_version: 4
vs_version: 14.0
architecture: x64
- nodejs_version: 5
vs_version: 14.0
architecture: x86
install: &default_install_script
- ps: >-
Install-Product node $env:nodejs_version $env:architecture
node -v
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat"
$node = which node
$node = $node.Replace("/c/", "C:\").Replace("/", "\") + ".exe"
echo $node
netsh advfirewall firewall add rule name="Nodejs" dir=in action=allow program="$node" enable=yes
build_script: &default_build_script
- ps: >-
regedit /s c:\projects\nodejstools\Nodejs\Prerequisites\EnableSkipVerification.reg
msiexec /package C:\projects\nodejstools\Common\Tests\Prerequisites\VSTestHost.msi /quiet
powershell -ExecutionPolicy RemoteSigned C:\projects\nodejstools\Nodejs\Setup\BuildRelease.ps1 .\NTVS_Out -skipcopy -skipdebug -skipclean -vsTarget $env:vs_version
test_script: &default_test_script
- ps: >-
$testsettings_version = $env:vs_version -replace '11.0', '12.0'
vstest.console /TestCaseFilter:"TestCategory!=AppVeyorIgnore&TestCategory!=Ignore" /logger:Appveyor $("C:\projects\nodejstools\BuildOutput\Release" + $env:vs_version + "\Tests\NpmTests.dll") $("C:\projects\nodejstools\BuildOutput\Release" + $env:vs_version + "\Tests\NodeTests.dll") $("C:\projects\nodejstools\BuildOutput\Release" + $env:vs_version + "\Tests\ProfilerTests.dll") /settings:$("C:\projects\nodejstools\Build\default." + $testsettings_version + "Exp.testsettings")
artifacts: &default_artifacts
- path: NTVS_Out
name: NtvsOut
type: zip
-
version: 1.0.{build}
branches:
only:
- v1.2.x
skip_tags: true
image: Visual Studio 2015
environment:
matrix:
- nodejs_version: 4
vs_version: 14.0
architecture: x64
- nodejs_version: 5
vs_version: 14.0
architecture: x86
install: *default_install_script
build_script: *default_build_script
test_script: *default_test_script
artifacts: *default_artifacts
-
version: 1.0.{build}
branches:
only:
- v1.1.x
skip_tags: true
image: Visual Studio 2015
environment:
matrix:
- nodejs_version: 4
vs_version: 14.0
architecture: x64
- nodejs_version: 0.12
vs_version: 12.0
architecture: x64
- nodejs_version: 5
vs_version: 14.0
architecture: x86
install: *default_install_script
build_script: *default_build_script
test_script: *default_test_script
artifacts: *default_artifacts