forked from typicode/husky
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
47 lines (37 loc) · 975 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
42
43
44
45
46
47
# Test against the latest version of this Node.js version
environment:
nodejs_version: "10"
HUSKY_DEBUG: 1
# 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
- npm ci
cache:
- '%APPDATA%\npm-cache'
- node_modules
# Post-install test scripts.
test_script:
# Output useful info for debugging.
- node --version
- npm --version
# Run tests
- npm test
# Install hooks locally
- npm run devinstall
- cat .git/hooks/post-checkout
# Test HUSKY_SKIP_HOOKS
- ps: $env:HUSKY_SKIP_HOOKS=1
- node scripts/ci-husky-skip-hooks-check
- ps: $env:HUSKY_SKIP_HOOKS=0
# Test post-checkout hook
- git checkout
- node scripts/ci-post-checkout-check
# Should not fail due to missing script
- node scripts/ci-break-path.js
- git checkout
# Test uninstall
- npm run devuninstall
# Don't actually build.
build: off