sudo: required dist: trusty language: php services: - mysql php: - "7.1" before_install: - sudo rm -rf ~/.nvm - curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - - sudo apt-get install -y nodejs build-essential install: - .travis/frontend-install.sh - .travis/backend-install.sh before_script: - phpenv config-rm xdebug.ini - phpenv config-add .travis/data/phpconfig.ini - mysql -e 'CREATE DATABASE pdnstest;' - .travis/backend-start-server.sh > /dev/null 2>&1 & script: - .travis/frontend-lint.sh - .travis/frontend-build.sh - .travis/backend-lint.sh - .travis/backend-test.sh - .travis/build-package.sh deploy: - provider: script script: .travis/deploy-snapshot.sh skip_cleanup: true on: branch: master - provider: script script: .travis/deploy-release.sh skip_cleanup: true on: tags: true