forked from felixrieseberg/windows-build-tools
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
33 lines (28 loc) · 860 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
init:
- git config --global core.autocrlf input
# Test against these versions of Node.js.
environment:
matrix:
- nodejs_version: "10.0"
# Install scripts. (runs after repo cloning)
install:
- ps: |
if ($env:NPM_TOKEN.length -eq 0) {
Write-Host "This job originated from an untrusted source.";
if (Test-Path ./.npmrc) {
Write-Host "Renaming .npmrc to disable it";
Rename-Item -Path ./.npmrc -NewName "npmrcdisabled";
}
}
- ps: Install-Product node $env:nodejs_version
- npm install --ignore-scripts
# Post-install test scripts.
test_script:
# Output useful info for debugging.
- node --version
- npm --version
# run tests
- npm test
build: off
deploy_script:
- if %APPVEYOR_REPO_TAG% EQU true npm config set '//registry.npmjs.org/:_authToken' "%NPM_TOKEN%" && npm publish .