-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
69 lines (61 loc) · 2.06 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
image:
#- Previous Visual Studio 2019
- Visual Studio 2019
# Note: `ps: Install-Product node $env:nodejs_version` doesn't work on Linux
#- Previous Ubuntu
#- Ubuntu
environment:
#nodejs_version: "14" # For Windows image (Linux uses "stack" property)
matrix:
- job_name: Default Node.js
skip_node_install: 1
- job_name: Node.js 12.x
nodejs_version: "12"
- job_name: Node.js 14.x
nodejs_version: "14"
- job_name: Node.js 14.0.0
nodejs_version: "14.0.0"
- job_name: Node.js 14.7.0
nodejs_version: "14.7.0"
install:
# Use the latest matching version of Node.js that's installed
#- cmd: IF NOT DEFINED skip_node_install powershell Install-Product node $env:nodejs_version
- ps: |
If ($env:skip_node_install) {
echo "Using default node version"
} else {
Install-Product node $env:nodejs_version
}
# DEBUG
- cmd: echo %PATH%
- node --version
# Check that `npm` is in the path
- sh: which npm
- ps: gcm npm
- ps: dir ([System.IO.Path]::GetDirectoryName((gcm npm).Source))
- cmd: type "C:\Program Files (x86)\nodejs\npm.cmd"
- cmd: wmic datafile where Name="C:\\Program Files (x86)\\nodejs\\npm.cmd"
# Sometimes one of the following `npm` commands fails -- perhaps due to a race condition / timing problem
# The `ping` command below acts a substitute for "sleep 5s" to see if the problem goes away when a delay is inserted here
#- cmd: ping -n 4 127.0.0.1
#- sh: ping -c 4 127.0.0.1
- cmd: npm --version
- ps: npm --version
- npm --version
- cmd: npm config --help
- ps: npm config --help
- npm config --help
- cmd: npm config set spin false
- ps: npm config set spin false
- npm config set spin false
build_script:
- echo "Skip build"
# Post-install test scripts.
test_script:
- echo "Skip test"
# Try again just for kicks
on_failure:
# The `ping` command below acts a substitute for "sleep 5s" to see if the problem goes away when a delay is inserted here
- cmd: ping -n 5 127.0.0.1
- cmd: npm --version
- cmd: npm set config spin false