Skip to content

Commit

Permalink
[Tests] fix appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Apr 26, 2018
1 parent d68ef96 commit 230b0ad
Showing 1 changed file with 41 additions and 18 deletions.
59 changes: 41 additions & 18 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,46 @@
version: '{build}'
skip_branch_with_pr: true
build: off
shallow_clone: true
clone_depth: 1

environment:
matrix:
- nodejs_version: '4'
- nodejs_version: '5'
- nodejs_version: '6'
- nodejs_version: '7'
- nodejs_version: '8'
install:
- ps: Install-Product node $env:nodejs_version
- set CI=true
- npm -g install npm@latest
- set PATH=%APPDATA%\npm;%PATH%
- npm install
- nodejs_version: "10"
- nodejs_version: "9"
- nodejs_version: "8"
- nodejs_version: "7"
- nodejs_version: "6"
- nodejs_version: "5"
- nodejs_version: "4"
matrix:
fast_finish: true
build: off
version: '{build}'
shallow_clone: true
clone_depth: 1
allow_failures:
- nodejs_version: "9"
- nodejs_version: "7"
- nodejs_version: "5"

platform:
- x86
- x64

# Install scripts. (runs after repo cloning)
install:
# Get the latest stable version of Node.js or io.js
- ps: Install-Product node $env:nodejs_version $env:platform
- set CI=true
- IF %nodejs_version% EQU 0.6 npm -g install npm@1.3
- IF %nodejs_version% EQU 0.8 npm -g install npm@2
- IF %nodejs_version% LSS 6 npm -g install npm@5
- IF %nodejs_version% GEQ 6 npm -g install npm@6
- set PATH=%APPDATA%\npm;%PATH%
# install modules
- npm install

# Post-install test scripts.
test_script:
- node --version
- npm --version
- npm test
# Output useful info for debugging.
- node --version
- npm --version
# run tests
- npm run unit-test

0 comments on commit 230b0ad

Please sign in to comment.