.travis.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
  2. # ╔╦╗╦═╗╔═╗╦ ╦╦╔═╗ ┬ ┬┌┬┐┬ #
  3. # ║ ╠╦╝╠═╣╚╗╔╝║╚═╗ └┬┘││││ #
  4. # o ╩ ╩╚═╩ ╩ ╚╝ ╩╚═╝o ┴ ┴ ┴┴─┘ #
  5. # #
  6. # This file configures Travis CI. #
  7. # (i.e. how we run the tests... mainly) #
  8. # #
  9. # https://docs.travis-ci.com/user/customizing-the-build #
  10. # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
  11. language: node_js
  12. node_js:
  13. - "4"
  14. - "6"
  15. - "8"
  16. - "node"
  17. branches:
  18. only:
  19. - master
  20. notifications:
  21. email:
  22. - ci@sailsjs.com
  23. # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
  24. # ╔═╗╦ ╦╔═╗╔╦╗╔═╗╔╦╗┬┌─┐┌─┐┌┬┐┬┌─┐┌┐┌┌─┐ #
  25. # ║ ║ ║╚═╗ ║ ║ ║║║║│┌─┘├─┤ │ ││ ││││└─┐ #
  26. # ╚═╝╚═╝╚═╝ ╩ ╚═╝╩ ╩┴└─┘┴ ┴ ┴ ┴└─┘┘└┘└─┘ #
  27. # #
  28. # Custom stuff specific to this package: #
  29. # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
  30. sudo: false
  31. services:
  32. - mysql
  33. env:
  34. - DB_USER=mp DB_PASS='mp'
  35. before_script:
  36. - mysql -e 'create database mppg;'
  37. - mysql -e "create user 'mp'@'localhost' identified by 'mp';"
  38. - mysql -e "grant all privileges on * . * to 'mp'@'localhost';" -u root
  39. - mysql -e "flush privileges;" -u root