2018-03-23 17:32:09 +00:00
|
|
|
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:
|
2018-03-23 18:50:39 +00:00
|
|
|
- phpenv config-rm xdebug.ini
|
2018-03-23 19:01:09 +00:00
|
|
|
- phpenv config-add .travis/data/phpconfig.ini
|
2018-03-23 17:32:09 +00:00
|
|
|
- mysql -e 'CREATE DATABASE pdnstest;'
|
2018-03-23 19:06:13 +00:00
|
|
|
- .travis/backend-start-server.sh > /dev/null 2>&1 &
|
2018-03-23 17:32:09 +00:00
|
|
|
script:
|
|
|
|
- .travis/frontend-lint.sh
|
2018-04-08 11:02:00 +00:00
|
|
|
- .travis/frontend-build.sh
|
2018-03-23 17:32:09 +00:00
|
|
|
- .travis/backend-lint.sh
|
|
|
|
- .travis/backend-test.sh
|
2018-04-29 18:50:50 +00:00
|
|
|
- .travis/build-package.sh
|
2018-06-07 19:28:03 +00:00
|
|
|
deploy:
|
|
|
|
- provider: script
|
|
|
|
script: .travis/deploy-snapshot.sh
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
2018-08-26 19:40:11 +00:00
|
|
|
branch: master
|
2018-06-07 19:28:03 +00:00
|
|
|
- provider: script
|
|
|
|
script: .travis/deploy-release.sh
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
2018-08-26 19:40:11 +00:00
|
|
|
tags: true
|