mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
chore: update travis and appveyor
This commit is contained in:
parent
8366b6cb48
commit
d915c837d9
|
@ -7,13 +7,13 @@
|
|||
# What combinations to test
|
||||
environment:
|
||||
matrix:
|
||||
- nodejs_version: "4"
|
||||
platform: x64
|
||||
- nodejs_version: "4"
|
||||
platform: x86
|
||||
- nodejs_version: "6"
|
||||
platform: x64
|
||||
- nodejs_version: "7"
|
||||
- nodejs_version: "6"
|
||||
platform: x86
|
||||
- nodejs_version: "8"
|
||||
platform: x64
|
||||
- nodejs_version: "10"
|
||||
platform: x64
|
||||
|
||||
install:
|
||||
|
@ -24,10 +24,7 @@ install:
|
|||
# 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
|
||||
|
@ -36,14 +33,6 @@ 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
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
language: node_js
|
||||
node_js:
|
||||
- "4"
|
||||
- "6"
|
||||
- "7"
|
||||
- "8"
|
||||
- "10"
|
||||
|
||||
before_install:
|
||||
- 'if [ "$TRAVIS_NODE_VERSION" != "0.10" -a "$TRAVIS_NODE_VERSION" != "0.12" ]; then npm update npm -g; fi'
|
||||
- npm install -g grunt-cli
|
||||
|
||||
#travis build speed up
|
||||
|
|
Loading…
Reference in New Issue
Block a user