mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
1efca074bd
* update CI node versions to match node supported versions * remove node 17.x on appveyor, it only supports up to node 16.x * travis CI is not longer free/working; remove it in favor of github actions
43 lines
984 B
YAML
43 lines
984 B
YAML
# branches to build
|
|
#branches:
|
|
# whitelist
|
|
#only:
|
|
# - master
|
|
|
|
# What combinations to test
|
|
environment:
|
|
matrix:
|
|
- nodejs_version: "12"
|
|
platform: x64
|
|
- nodejs_version: "12"
|
|
platform: x86
|
|
- nodejs_version: "14"
|
|
platform: x86
|
|
- nodejs_version: "14"
|
|
platform: x64
|
|
- nodejs_version: "16"
|
|
platform: x86
|
|
- nodejs_version: "16"
|
|
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
|
|
- ps: grunt test
|
|
|
|
# Don't actually build.
|
|
build: off
|