-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathappveyor.yml
42 lines (33 loc) · 878 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
# http://www.appveyor.com/docs/appveyor-yml
image: Visual Studio 2017
# Test against these versions of Io.js and Node.js.
environment:
matrix:
# node.js
- nodejs_version: "10"
cache:
- node_modules
clone_depth: 5
platform:
- x64
# Install scripts. (runs after repo cloning)
install:
# Get the latest stable version of Node 0.STABLE.latest
- ps: Install-Product node $env:nodejs_version $env:platform
- npm -g install npm
- set PATH=%APPDATA%\npm;%PATH%
- ps: '"//registry.npmjs.org/:_authToken=$env:npm_auth_token`n" | out-file "$env:userprofile\.npmrc" -Encoding ASCII'
- npm whoami
- npm install
- npm run build
test_script:
# Output useful info for debugging.
- node --version
- npm --version
# run tests
- npm test
- npm run test:it
on_success:
- IF defined APPVEYOR_REPO_TAG_NAME npm publish
build: off
version: "{build}"