appveyor.yml 2.7 KB

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