-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
58 lines (48 loc) · 1.21 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
# https://www.appveyor.com/docs/appveyor-yml
# to disable automatic builds
build: off
# branches to build
branches:
# whitelist
only:
- develop
- master
# Do not build on tags (GitHub and BitBucket)
skip_tags: true
# Fix line endings on Windows
init:
- git config --global core.autocrlf true
# quicker git clone
shallow_clone: true
clone_depth: 1
# cache
cache:
- node_modules -> package.json # cache node_modules, reset if package.json is modified
# Test against these versions of Node.js
environment:
matrix:
- nodejs_version: "6"
- nodejs_version: "8"
- nodejs_version: "10"
- nodejs_version: "12"
# fastfail
matrix:
fast_finish: true
# 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
# Output useful info for debugging.
- node --version
- npm --version
# install modules
- npm install
# Post-install test scripts.
test_script:
- npm run snyk-auth-windows
# some tests are failing on npm@5, downgrade to npm@3
# namely: protect-patch.test.js, wizard-prepare.test.js, wizard-prepublish.test.js
- npm i -g npm@^3.10.10
- npm --version
- npm run build
- npm run tap