-
Notifications
You must be signed in to change notification settings - Fork 8
/
appveyor.yml
41 lines (34 loc) · 933 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
40
41
environment:
matrix:
- nodejs_version: "18"
- nodejs_version: ""
DEBUG: "boilerplate-update,git-diff-apply"
branches:
only:
- main
# Fix line endings in Windows. (runs before repo cloning)
init:
- git config --global core.autocrlf true
# Install scripts. (runs after repo cloning)
install:
- ps: Install-Product node $env:nodejs_version
- ps: >-
if ($env:nodejs_version) {
[Environment]::SetEnvironmentVariable("NODE_LTS", "true", "User")
}
- RefreshEnv
- where npx
# don't accidentally use the global npx
- ps: rm "C:\Program Files\nodejs\npx*"
- ps: rm C:\Users\appveyor\AppData\Roaming\npm\npx*
# test that we can't find it
- ps: if (gcm npx) { exit }
- npm ci
# Post-install test scripts.
test_script:
- npm test
# http://help.appveyor.com/discussions/questions/1310-delete-cache
cache:
- node_modules -> package-lock.json
# Don't actually build.
build: off