separate deploy stage
This commit is contained in:
28
.travis.yml
28
.travis.yml
@@ -19,24 +19,30 @@ cache:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
- mysql
|
- mysql
|
||||||
|
# - mariadb
|
||||||
- redis-server
|
- redis-server
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
ssh_known_hosts: phpvms.net
|
ssh_known_hosts: phpvms.net
|
||||||
|
|
||||||
|
#before_install:
|
||||||
|
# - mysql -e 'CREATE DATABASE IF NOT EXISTS phpvms;'
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- stage: All tests
|
|
||||||
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
|
|
||||||
- stage: deploy
|
- stage: deploy
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- openssl aes-256-cbc -K $encrypted_6ae8173eef05_key -iv $encrypted_6ae8173eef05_iv -in .travis/deploy_rsa.enc -out /tmp/deploy_rsa -d
|
- openssl aes-256-cbc -K $encrypted_6ae8173eef05_key -iv $encrypted_6ae8173eef05_iv -in .travis/deploy_rsa.enc -out /tmp/deploy_rsa -d
|
||||||
|
|||||||
Reference in New Issue
Block a user