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.

37 lines
930B

  1. sudo: required
  2. dist: trusty
  3. language: php
  4. services:
  5. - mysql
  6. php:
  7. - "7.1"
  8. before_install:
  9. - sudo rm -rf ~/.nvm
  10. - curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
  11. - sudo apt-get install -y nodejs build-essential
  12. install:
  13. - .travis/frontend-install.sh
  14. - .travis/backend-install.sh
  15. before_script:
  16. - phpenv config-rm xdebug.ini
  17. - phpenv config-add .travis/data/phpconfig.ini
  18. - mysql -e 'CREATE DATABASE pdnstest;'
  19. - .travis/backend-start-server.sh > /dev/null 2>&1 &
  20. script:
  21. - .travis/frontend-lint.sh
  22. - .travis/frontend-build.sh
  23. - .travis/backend-lint.sh
  24. - .travis/backend-test.sh
  25. - .travis/build-package.sh
  26. deploy:
  27. - provider: script
  28. script: .travis/deploy-snapshot.sh
  29. skip_cleanup: true
  30. on:
  31. branch: master
  32. - provider: script
  33. script: .travis/deploy-release.sh
  34. skip_cleanup: true
  35. on:
  36. tags: true