forked from jshint/jshint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
40 lines (33 loc) · 1.24 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
version: "{build}"
clone_depth: 10
environment:
matrix:
- nodejs_version: 0.10
- nodejs_version: 0.12
- nodejs_version: 4
- nodejs_version: 6
- nodejs_version: 8
- nodejs_version: 10
install:
- ps: Install-Product node $env:nodejs_version
- git submodule update --init --recursive
# These packages cannot be installed in legacy versions of Node.js. Because
# they are only needed to verify correctness in a browser-like environment,
# they can be removed (and the tests skipped) without effecting coverage.
- if NOT "%nodejs_version%" == "10" node scripts/remove-dev-dependencies.js puppeteer
# This package is a transitive dependency which discontinued support for
# legacy Node.js versions in a patch release. Explicitly installing the
# compatible version as a dependency induces npm to use that version when
# installing modules.
- if NOT "%nodejs_version%" == "10" npm install --no-package-lock --save-dev cli-table@0.3.1
- npm install
build: off
test_script:
- node --version && npm --version
- npm run test-node
- if "%nodejs_version%" == "10" npm run test-browser
- if "%nodejs_version%" == "10" npm run test-262
cache:
- node_modules # local npm modules
matrix:
fast_finish: true