0e7a8ef16a
Use variables for cache items.
38 lines
755 B
YAML
38 lines
755 B
YAML
# AppVeyor file
|
|
# http://www.appveyor.com/docs/appveyor-yml
|
|
|
|
# Build version format
|
|
version: "{build}"
|
|
|
|
clone_depth: 10
|
|
|
|
# Fix line endings on Windows
|
|
init:
|
|
- git config --global core.autocrlf true
|
|
|
|
# What combinations to test
|
|
environment:
|
|
matrix:
|
|
- nodejs_version: 1
|
|
- nodejs_version: 0.12
|
|
- nodejs_version: 0.10
|
|
|
|
install:
|
|
- ps: Install-Product node $env:nodejs_version
|
|
- npm install -g grunt-cli
|
|
- npm install
|
|
|
|
build: off
|
|
|
|
test_script:
|
|
- node --version && npm --version
|
|
- npm test
|
|
|
|
matrix:
|
|
fast_finish: true
|
|
|
|
cache:
|
|
- '%APPDATA%\npm\node_modules -> package.json' # global npm modules
|
|
- '%APPDATA%\npm-cache -> package.json' # npm cache
|
|
- 'node_modules -> package.json' # local npm modules
|