-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
70 lines (55 loc) · 2.44 KB
/
appveyor.yml
File metadata and controls
70 lines (55 loc) · 2.44 KB
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
version: 1.0.{build}
environment:
expected_default_node: v26.
expected_lts_node: v24.
expected_stable_node: v24.
expected_current_node: v26.
init:
#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
- appveyor version
- echo %AVVM_DOWNLOAD_URL%
- ps: Write-Host $env:APPVEYOR_BUILD_WORKER_IMAGE
- ps: Write-Host $env:APPVEYOR_BUILD_WORKER_CLOUD
test_script:
#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
- ps: Write-Host "Default"
- ps: $default_node = (node --version)
- ps: $default_node
- ps: if(-not $default_node.startsWith($env:expected_default_node)) { throw "Default Node.js version should be $($env:expected_default_node).x" }
- ps: Write-Host "LTS"
#- ps: Install-Product node 'LTS'
- ps: Install-Product node 'LTS'
- ps: $lts_node = (node --version)
- ps: $lts_node
- ps: if(-not $lts_node.startsWith($env:expected_lts_node)) { throw "LTS Node.js version should be $($env:expected_lts_node).x" }
- ps: Write-Host "Current"
- ps: Install-Product node 'Current'
- ps: $current_node = (node --version)
- ps: $current_node
- ps: if(-not $current_node.startsWith($env:expected_current_node)) { throw "Current Node.js version should be $($env:expected_current_node).x" }
- ps: Write-Host "Stable"
- ps: Install-Product node 'Stable'
- ps: $stable_node = (node --version)
- ps: $stable_node
- ps: if(-not $stable_node.startsWith($env:expected_stable_node)) { throw "Stable Node.js version should be $($env:expected_stable_node).x" }
#$versions = @("24.6.0", "23.11.1", "22.21.1", "21.7.3", "20.17.0", "19.9.0", "18.20.3", "17.9.1", "16.20.1", "15.14.0", "14.20.1", "13.14.0", "12.22.12")
- ps: |
$versions = @("26.2.0", "24.16.0", "22.22.3")
foreach ($version in $versions){
Install-Product node $version
$nv = node -v
$File = $version + ".txt"
$out = $env:appveyor_build_folder + $File
$nv | Out-File $File
if ($nv -eq ("v" + $version)){
Write-Host "Correct version"
}
else{
exit 1
}
Start-Sleep -s 1
}
if($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
artifacts:
- path: '**\*.txt'
build: off