2017-12-29 07:32:40 +08:00
|
|
|
#
|
|
|
|
#
|
|
|
|
|
2017-06-09 11:27:50 +08:00
|
|
|
language: php
|
|
|
|
php:
|
2017-12-29 07:32:40 +08:00
|
|
|
- '7.0'
|
|
|
|
- '7.1'
|
|
|
|
- '7.2'
|
2017-12-29 07:34:39 +08:00
|
|
|
- nightly
|
2017-12-29 07:32:40 +08:00
|
|
|
|
2018-01-03 04:45:55 +08:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache
|
|
|
|
- $HOME/.npm
|
|
|
|
|
2017-07-14 02:45:59 +08:00
|
|
|
services:
|
2017-12-29 07:32:40 +08:00
|
|
|
- mysql
|
|
|
|
|
2017-12-14 05:53:37 +08:00
|
|
|
addons:
|
|
|
|
ssh_known_hosts: phpvms.net
|
2017-12-29 07:32:40 +08:00
|
|
|
|
2017-07-14 02:45:59 +08:00
|
|
|
before_install:
|
2017-12-29 07:32:40 +08:00
|
|
|
- mysql -e 'CREATE DATABASE IF NOT EXISTS phpvms;'
|
|
|
|
|
2017-06-09 11:50:22 +08:00
|
|
|
before_script:
|
2017-12-29 07:32:40 +08:00
|
|
|
- cp .travis/env.travis.php env.php
|
2018-01-03 12:20:00 +08:00
|
|
|
- composer install --no-interaction --verbose
|
2017-12-29 07:32:40 +08:00
|
|
|
|
2017-06-09 11:50:22 +08:00
|
|
|
script:
|
2017-12-29 07:32:40 +08:00
|
|
|
- php artisan database:create --reset
|
|
|
|
- php artisan migrate:refresh --seed
|
|
|
|
- cp .travis/phpunit.travis.xml phpunit.xml
|
|
|
|
- vendor/bin/phpunit --debug --verbose
|
|
|
|
|
2017-12-12 12:12:47 +08:00
|
|
|
after_failure:
|
2017-12-29 07:32:40 +08:00
|
|
|
- cat storage/logs/*.log
|
|
|
|
|
2017-12-14 05:53:37 +08:00
|
|
|
before_deploy:
|
2017-12-29 07:32:40 +08:00
|
|
|
- openssl aes-256-cbc -K $encrypted_6ae8173eef05_key -iv $encrypted_6ae8173eef05_iv -in .travis/deploy_rsa.enc -out /tmp/deploy_rsa -d
|
|
|
|
- eval "$(ssh-agent -s)"
|
|
|
|
- chmod 600 /tmp/deploy_rsa
|
|
|
|
- ssh-add /tmp/deploy_rsa
|
|
|
|
|
2017-12-14 05:53:37 +08:00
|
|
|
deploy:
|
|
|
|
provider: script
|
|
|
|
skip_cleanup: true
|
2017-12-15 00:57:43 +08:00
|
|
|
script: ./.travis/deploy_script.sh
|
2017-12-14 05:53:37 +08:00
|
|
|
on:
|
|
|
|
branch: master
|
2017-12-14 07:10:43 +08:00
|
|
|
php: '7.0'
|