appveyor.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # http://www.appveyor.com/docs/appveyor-yml
  2. # Test against these versions of Node.js.
  3. environment:
  4. # Visual Studio Version
  5. MSVS_VERSION: 2013
  6. # Test against these versions of Node.js and io.js
  7. matrix:
  8. # node.js
  9. - nodejs_version: "0.8"
  10. - nodejs_version: "0.10"
  11. - nodejs_version: "0.12"
  12. # io.js
  13. - nodejs_version: "2.5"
  14. - nodejs_version: "3.2"
  15. platform:
  16. - x86
  17. - x64
  18. # Install scripts. (runs after repo cloning)
  19. install:
  20. # Get the latest stable version of Node 0.STABLE.latest
  21. - ps: if($env:nodejs_version -eq "0.8") {Install-Product node $env:nodejs_version}
  22. - ps: if($env:nodejs_version -ne "0.8") {Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version)}
  23. # Node 0.8 comes with a too obsolete npm
  24. - IF %nodejs_version% == 0.8 (npm install -g npm@1.4.28)
  25. # Install latest NPM only for node.js versions until built in node-gyp adds io.js support
  26. # Update is required for node.js 0.8 because built in npm(node-gyp) does not know VS2013
  27. - IF %nodejs_version% LSS 1 (npm install -g npm@2)
  28. - IF %nodejs_version% LSS 1 set PATH=%APPDATA%\npm;%PATH%
  29. # Typical npm stuff.
  30. - npm install --msvs_version=%MSVS_VERSION%
  31. # Post-install test scripts.
  32. test_script:
  33. # Output useful info for debugging.
  34. - node --version
  35. - npm --version
  36. # run tests
  37. - npm test
  38. # Don't actually build.
  39. build: off
  40. # Set build version format here instead of in the admin panel.
  41. version: "{build}"