2017-03-05 13:08:52 +08:00
|
|
|
# branches to build
|
|
|
|
#branches:
|
|
|
|
# whitelist
|
|
|
|
#only:
|
|
|
|
# - master
|
|
|
|
|
|
|
|
# What combinations to test
|
|
|
|
environment:
|
|
|
|
matrix:
|
2021-11-10 04:05:44 +08:00
|
|
|
- nodejs_version: "12"
|
2017-03-05 13:08:52 +08:00
|
|
|
platform: x64
|
2021-11-10 04:05:44 +08:00
|
|
|
- nodejs_version: "12"
|
2018-05-08 02:39:09 +08:00
|
|
|
platform: x86
|
2021-11-10 04:05:44 +08:00
|
|
|
- nodejs_version: "14"
|
2018-05-08 02:54:37 +08:00
|
|
|
platform: x86
|
2021-11-10 04:05:44 +08:00
|
|
|
- nodejs_version: "14"
|
2017-03-05 13:08:52 +08:00
|
|
|
platform: x64
|
2021-11-10 04:05:44 +08:00
|
|
|
- nodejs_version: "16"
|
|
|
|
platform: x86
|
|
|
|
- nodejs_version: "16"
|
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
|