forked from showdownjs/showdown
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(appveyor): add appveyor testing
Add testing on windows environment
- Loading branch information
Showing
4 changed files
with
99 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# branches to build | ||
#branches: | ||
# whitelist | ||
#only: | ||
# - master | ||
|
||
# What combinations to test | ||
environment: | ||
matrix: | ||
- nodejs_version: "0.10" | ||
platform: x86 | ||
- nodejs_version: "0.12" | ||
platform: x86 | ||
- nodejs_version: "4" | ||
platform: x64 | ||
- nodejs_version: "4" | ||
platform: x86 | ||
- nodejs_version: "6" | ||
platform: x64 | ||
- nodejs_version: "7" | ||
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 | ||
- ps: >- | ||
if ($env:nodejs_version -eq "0.12" -or $env:nodejs_version -eq "0.10") { | ||
$env:PATH="$env:APPDATA\npm;$env:PATH" | ||
} | ||
# 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: >- | ||
if ($env:nodejs_version -eq "0.12" -or $env:nodejs_version -eq "0.10") { | ||
echo ----- Running tests in LEGACY mode ----- | ||
grunt test-old | ||
} else { | ||
echo ----- Running tests in NORMAL mode ----- | ||
grunt test | ||
} | ||
# Don't actually build. | ||
build: off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters