[6a3a178] | 1 | version: 1.0.{build}
|
---|
| 2 | skip_branch_with_pr: true
|
---|
| 3 | build: off
|
---|
| 4 |
|
---|
| 5 | environment:
|
---|
| 6 | matrix:
|
---|
| 7 | #- nodejs_version: "15"
|
---|
| 8 | - nodejs_version: "14"
|
---|
| 9 | - nodejs_version: "13"
|
---|
| 10 | - nodejs_version: "12"
|
---|
| 11 | - nodejs_version: "11"
|
---|
| 12 | - nodejs_version: "10"
|
---|
| 13 | - nodejs_version: "9"
|
---|
| 14 | - nodejs_version: "8"
|
---|
| 15 | - nodejs_version: "7"
|
---|
| 16 | - nodejs_version: "6"
|
---|
| 17 | - nodejs_version: "5"
|
---|
| 18 | - nodejs_version: "4"
|
---|
| 19 | - nodejs_version: "3"
|
---|
| 20 | - nodejs_version: "2"
|
---|
| 21 | - nodejs_version: "1"
|
---|
| 22 | - nodejs_version: "0.12"
|
---|
| 23 | - nodejs_version: "0.10"
|
---|
| 24 | - nodejs_version: "0.8"
|
---|
| 25 | - nodejs_version: "0.6"
|
---|
| 26 | matrix:
|
---|
| 27 | # fast_finish: true
|
---|
| 28 | allow_failures:
|
---|
| 29 | - nodejs_version: "5" # due to windows npm bug, registry-side
|
---|
| 30 | - nodejs_version: "0.8"
|
---|
| 31 | # platform: x86 # x64 has started failing on the registry side, around early November 2020
|
---|
| 32 | - nodejs_version: "0.6"
|
---|
| 33 |
|
---|
| 34 | platform:
|
---|
| 35 | - x86
|
---|
| 36 | - x64
|
---|
| 37 |
|
---|
| 38 | # Install scripts. (runs after repo cloning)
|
---|
| 39 | install:
|
---|
| 40 | # Fix symlinks in working copy (see https://github.com/appveyor/ci/issues/650#issuecomment-186592582) / https://github.com/charleskorn/batect/commit/d08986802ec43086902958c4ee7e57ff3e71dbef
|
---|
| 41 | - git config core.symlinks true
|
---|
| 42 | - git reset --hard
|
---|
| 43 | # Get the latest stable version of Node.js or io.js
|
---|
| 44 | - ps: if ($env:nodejs_version -ne '0.6') { Install-Product node $env:nodejs_version $env:platform }
|
---|
| 45 | - ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:platform
|
---|
| 46 | - IF %nodejs_version% EQU 0.6 npm config set strict-ssl false && npm -g install npm@1.3
|
---|
| 47 | - IF %nodejs_version% EQU 0.8 npm config set strict-ssl false && npm -g install npm@1.4.28 && npm install -g npm@4.5
|
---|
| 48 | - IF %nodejs_version% EQU 1 npm -g install npm@2.9
|
---|
| 49 | - IF %nodejs_version% EQU 2 npm -g install npm@4
|
---|
| 50 | - IF %nodejs_version% EQU 3 npm -g install npm@4
|
---|
| 51 | - IF %nodejs_version% EQU 4 npm -g install npm@5.3
|
---|
| 52 | - IF %nodejs_version% EQU 5 npm -g install npm@5.3
|
---|
| 53 | - IF %nodejs_version% EQU 6 npm -g install npm@6.9
|
---|
| 54 | - IF %nodejs_version% EQU 7 npm -g install npm@6
|
---|
| 55 | - IF %nodejs_version% EQU 8 npm -g install npm@6
|
---|
| 56 | - IF %nodejs_version% EQU 9 npm -g install npm@6.9
|
---|
| 57 | - IF %nodejs_version% EQU 10 npm -g install npm@7
|
---|
| 58 | - IF %nodejs_version% EQU 11 npm -g install npm@7
|
---|
| 59 | - IF %nodejs_version% EQU 12 npm -g install npm@7
|
---|
| 60 | - IF %nodejs_version% EQU 13 npm -g install npm@7
|
---|
| 61 | - IF %nodejs_version% EQU 14 npm -g install npm@7
|
---|
| 62 | - IF %nodejs_version% EQU 15 npm -g install npm@7
|
---|
| 63 | - set PATH=%APPDATA%\npm;%PATH%
|
---|
| 64 | #- IF %nodejs_version% NEQ 0.6 AND %nodejs_version% NEQ 0.8 npm -g install npm
|
---|
| 65 | # install modules
|
---|
| 66 | - npm install
|
---|
| 67 |
|
---|
| 68 | # Post-install test scripts.
|
---|
| 69 | test_script:
|
---|
| 70 | # Output useful info for debugging.
|
---|
| 71 | - node --version
|
---|
| 72 | - npm --version
|
---|
| 73 | # run tests
|
---|
| 74 | - npm run tests-only
|
---|