-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
appveyor.yml
62 lines (49 loc) · 1.29 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
# Test against this version of Node.js
environment:
matrix:
- nodejs_version: "14"
- nodejs_version: "12"
- nodejs_version: "10"
- nodejs_version: "8"
# - nodejs_version: "6"
# - nodejs_version: "4"
matrix:
fast_finish: false
# allow_failures:
# - nodejs_version: "4" # for eslint 5
# platform:
# - x86
# - x64
# Install scripts. (runs after repo cloning)
install:
# Get the latest stable version of Node.js or io.js
- ps: Install-Product node $env:nodejs_version
# install modules
- ps: >-
if ($env:nodejs_version -eq "4") {
npm install -g npm@3;
}
if ($env:nodejs_version -in @("8", "10", "12")) {
npm install -g npm@6.10.3;
}
- npm install
# fix symlinks
- cmd: git config core.symlinks true
- cmd: git reset --hard
# todo: learn how to do this for all .\resolvers\* on Windows
- cd .\resolvers\webpack && npm install && cd ..\..
- cd .\resolvers\node && npm install && cd ..\..
# Post-install test scripts.
test_script:
# Output useful info for debugging.
- node --version
- npm --version
# core tests
- npm run tests-only
# resolver tests
- cd .\resolvers\webpack && npm test && cd ..\..
- cd .\resolvers\node && npm test && cd ..\..
on_success:
- npm run coveralls
# Don't actually build.
build: off