2017-03-05 13:08:52 +08:00
|
|
|
# branches to build
|
|
|
|
#branches:
|
|
|
|
# whitelist
|
|
|
|
#only:
|
|
|
|
# - master
|
|
|
|
|
|
|
|
# What combinations to test
|
|
|
|
environment:
|
|
|
|
matrix:
|
2018-05-08 02:39:09 +08:00
|
|
|
- nodejs_version: "6"
|
2017-03-05 13:08:52 +08:00
|
|
|
platform: x64
|
|
|
|
- nodejs_version: "6"
|
2018-05-08 02:39:09 +08:00
|
|
|
platform: x86
|
2018-05-08 02:54:37 +08:00
|
|
|
- nodejs_version: "8"
|
|
|
|
platform: x86
|
2018-05-08 02:39:09 +08:00
|
|
|
- nodejs_version: "8"
|
2017-03-05 13:08:52 +08:00
|
|
|
platform: x64
|
2018-05-08 02:39:09 +08:00
|
|
|
- nodejs_version: "10"
|
2017-03-05 13:08:52 +08:00
|
|
|
platform: x64
|
|
|
|
|
|
|
|
install:
|
|
|
|
# Use version based on tag
|
|
|
|
- ps: $env:package_version = (Get-Content -Raw -Path package.json | ConvertFrom-Json).version
|
|
|
|
- ps: Update-AppveyorBuild -Version "$env:package_version-$env:APPVEYOR_BUILD_NUMBER"
|
|
|
|
|
|
|
|
# install node
|
|
|
|
# Get the latest stable version of Node.js or io.js
|
|
|
|
- ps: Install-Product node $env:nodejs_version
|
|
|
|
# install grunt-cli globally
|
|
|
|
- npm install -g grunt-cli
|
|
|
|
# install modules
|
|
|
|
- npm install
|
|
|
|
|
|
|
|
test_script:
|
|
|
|
# Output useful info for debugging
|
|
|
|
- node --version && npm --version
|
2018-10-17 06:03:09 +08:00
|
|
|
- ps: grunt test
|
2017-03-05 13:08:52 +08:00
|
|
|
|
|
|
|
# Don't actually build.
|
|
|
|
build: off
|