forked from jsx-eslint/eslint-plugin-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
47 lines (43 loc) · 1.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
version: '{build}'
skip_branch_with_pr: true
build: off
shallow_clone: true
clone_depth: 1
environment:
matrix:
- nodejs_version: "10"
- nodejs_version: "9"
- nodejs_version: "8"
- nodejs_version: "7"
- nodejs_version: "6"
- nodejs_version: "5"
- nodejs_version: "4"
matrix:
fast_finish: true
allow_failures:
- nodejs_version: "9"
- nodejs_version: "7"
- nodejs_version: "5"
- nodejs_version: "4"
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 $env:platform
- set CI=true
- IF %nodejs_version% EQU 0.6 npm -g install [email protected]
- IF %nodejs_version% EQU 0.8 npm -g install npm@2
- IF %nodejs_version% LSS 6 npm -g install npm@5
- IF %nodejs_version% GEQ 6 npm -g install npm@6
- set PATH=%APPDATA%\npm;%PATH%
# install modules
- npm install
# Post-install test scripts.
test_script:
# Output useful info for debugging.
- node --version
- npm --version
# run tests
- npm run unit-test