You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.5 KiB

4 years ago
  1. version: 1.0.{build}
  2. skip_branch_with_pr: true
  3. build: off
  4. environment:
  5. matrix:
  6. - nodejs_version: "12"
  7. - nodejs_version: "11"
  8. - nodejs_version: "10"
  9. - nodejs_version: "9"
  10. - nodejs_version: "8"
  11. - nodejs_version: "7"
  12. - nodejs_version: "6"
  13. - nodejs_version: "5"
  14. - nodejs_version: "4"
  15. - nodejs_version: "3"
  16. - nodejs_version: "2"
  17. - nodejs_version: "1"
  18. - nodejs_version: "0.12"
  19. - nodejs_version: "0.10"
  20. - nodejs_version: "0.8"
  21. - nodejs_version: "0.6"
  22. matrix:
  23. # fast_finish: true
  24. allow_failures:
  25. - nodejs_version: "0.8"
  26. - nodejs_version: "0.6"
  27. platform:
  28. - x86
  29. - x64
  30. # Install scripts. (runs after repo cloning)
  31. install:
  32. # Fix symlinks in working copy (see https://github.com/appveyor/ci/issues/650#issuecomment-186592582) / https://github.com/charleskorn/batect/commit/d08986802ec43086902958c4ee7e57ff3e71dbef
  33. - git config core.symlinks true
  34. - git reset --hard
  35. # Get the latest stable version of Node.js or io.js
  36. - ps: Install-Product node $env:nodejs_version $env:platform
  37. - IF %nodejs_version% EQU 0.6 npm config set strict-ssl false && npm -g install npm@1.3
  38. - 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
  39. - set PATH=%APPDATA%\npm;%PATH%
  40. #- IF %nodejs_version% NEQ 0.6 AND %nodejs_version% NEQ 0.8 npm -g install npm
  41. # install modules
  42. - npm install
  43. # Post-install test scripts.
  44. test_script:
  45. # Output useful info for debugging.
  46. - node --version
  47. - npm --version
  48. # run tests
  49. - npm run tests-only