appveyor.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # # # # # # # # # # # # # # # # # # # # # # # # # #
  2. # ╔═╗╔═╗╔═╗╦ ╦╔═╗╦ ╦╔═╗╦═╗ ┬ ┬┌┬┐┬ #
  3. # ╠═╣╠═╝╠═╝╚╗╔╝║╣ ╚╦╝║ ║╠╦╝ └┬┘││││ #
  4. # ╩ ╩╩ ╩ ╚╝ ╚═╝ ╩ ╚═╝╩╚═o ┴ ┴ ┴┴─┘ #
  5. # #
  6. # This file configures Appveyor CI. #
  7. # (i.e. how we run the tests on Windows) #
  8. # #
  9. # https://www.appveyor.com/docs/lang/nodejs-iojs/ #
  10. # # # # # # # # # # # # # # # # # # # # # # # # # #
  11. # Test against these versions of Node.js.
  12. environment:
  13. matrix:
  14. - nodejs_version: "0.10"
  15. - nodejs_version: "0.12"
  16. - nodejs_version: "4"
  17. - nodejs_version: "5"
  18. - nodejs_version: "6"
  19. - nodejs_version: "7"
  20. # Install scripts. (runs after repo cloning)
  21. install:
  22. # Get the latest stable version of Node.js
  23. # (Not sure what this is for, it's just in Appveyor's example.)
  24. - ps: Install-Product node $env:nodejs_version
  25. # Install declared dependencies
  26. - npm install
  27. # Post-install test scripts.
  28. test_script:
  29. # Setup database
  30. - SET MYSQL_PWD=Password12!
  31. - '"C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql" -u root -p"Password12!" -e "CREATE DATABASE IF NOT EXISTS adapter_tests"'
  32. # Output Node and NPM version info.
  33. # (Presumably just in case Appveyor decides to try any funny business?
  34. # But seriously, always good to audit this kind of stuff for debugging.)
  35. - node --version
  36. - npm --version
  37. # Run the actual tests.
  38. - npm run fasttest
  39. # Setup MySQL Database
  40. services:
  41. - mysql
  42. # Don't actually build.
  43. # (Not sure what this is for, it's just in Appveyor's example.
  44. # I'm not sure what we're not building... but I'm OK with not
  45. # building it. I guess.)
  46. build: off