appveyor.yml 2.7 KB

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