34 lines
645 B
YAML
34 lines
645 B
YAML
platform:
|
|
- x64
|
|
|
|
# Test against these versions of Node.js.
|
|
environment:
|
|
matrix:
|
|
- nodejs_version: "8"
|
|
- nodejs_version: "10"
|
|
|
|
# Install scripts. (runs after repo cloning)
|
|
install:
|
|
- ps: Install-Product node $env:nodejs_version
|
|
- set CI=true
|
|
- set PATH=%APPDATA%\npm;c:\MinGW\bin;%PATH%
|
|
- npm install npm@latest -g
|
|
- npm ci
|
|
|
|
# Post-install test scripts.
|
|
test_script:
|
|
# Output useful info for debugging.
|
|
- node --version
|
|
- npm --version
|
|
# run tests
|
|
- npm test
|
|
|
|
# Don't actually build.
|
|
build: off
|
|
|
|
# Set build version format here instead of in the admin panel.
|
|
version: "{build}"
|
|
|
|
shallow_clone: true
|
|
clone_depth: 1
|