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
|
|
|
|
|
2018-01-10 13:42:07 +08:00
|
|
|
services:
|
|
|
|
- mysql
|
|
|
|
- redis-server
|
2017-12-29 07:32:40 +08:00
|
|
|
|
2017-12-14 05:53:37 +08:00
|
|
|
addons:
|
|
|
|
ssh_known_hosts: phpvms.net
|
2017-12-29 07:32:40 +08:00
|
|
|
|
2018-01-10 13:55:47 +08:00
|
|
|
before_script:
|
|
|
|
- cp .travis/env.travis.php env.php
|
|
|
|
- composer install --no-interaction --verbose
|
|
|
|
|
|
|
|
script:
|
|
|
|
- php artisan database:create --reset
|
|
|
|
- php artisan migrate:refresh --seed
|
|
|
|
- cp .travis/phpunit.travis.xml phpunit.xml
|
|
|
|
- vendor/bin/phpunit --debug --verbose
|
|
|
|
|
|
|
|
after_failure:
|
|
|
|
- cat storage/logs/*.log
|
|
|
|
|
2018-01-10 13:51:40 +08:00
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: deploy
|
2018-01-10 14:02:10 +08:00
|
|
|
script: skip
|
2018-01-10 13:54:22 +08:00
|
|
|
before_deploy:
|
2018-01-17 13:32:32 +08:00
|
|
|
- curl -sL https://raw.githubusercontent.com/travis-ci/artifacts/master/install | bash
|
2018-01-10 13:51:40 +08:00
|
|
|
deploy:
|
|
|
|
provider: script
|
|
|
|
skip_cleanup: true
|
|
|
|
script: ./.travis/deploy_script.sh
|
|
|
|
on:
|
|
|
|
branch: master
|
|
|
|
php: '7.0'
|
2018-02-03 05:09:37 +08:00
|
|
|
- stage: deploy
|
|
|
|
script: skip
|
|
|
|
before_deploy:
|
|
|
|
- curl -sL https://raw.githubusercontent.com/travis-ci/artifacts/master/install | bash
|
|
|
|
deploy:
|
|
|
|
provider: script
|
|
|
|
skip_cleanup: true
|
|
|
|
script: ./.travis/deploy_script.sh
|
|
|
|
on:
|
|
|
|
tags: true
|
|
|
|
php: '7.0'
|