Move travis files and reduce verbosity

This commit is contained in:
Nabeel Shahzad 2017-12-13 17:10:43 -06:00
parent ce8a33582c
commit e8fd9411ee
4 changed files with 4 additions and 5 deletions

View File

@ -8,8 +8,6 @@ services:
addons:
ssh_known_hosts: phpvms.net
before_install:
- openssl aes-256-cbc -K $encrypted_6ae8173eef05_key -iv $encrypted_6ae8173eef05_iv
-in deploy_rsa.enc -out deploy_rsa -d
- mysql -e 'CREATE DATABASE IF NOT EXISTS phpvms;'
before_script:
- cp .env.travis .env
@ -22,7 +20,7 @@ script:
after_failure:
- cat storage/logs/*.log
before_deploy:
- openssl aes-256-cbc -K $encrypted_6ae8173eef05_key -iv $encrypted_6ae8173eef05_iv -in 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
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/deploy_rsa
- ssh-add /tmp/deploy_rsa
@ -32,3 +30,4 @@ deploy:
script: make deploy-package
on:
branch: master
php: '7.0'

View File

@ -8,5 +8,5 @@ fi
echo $PKG_NAME
#rm -rf .git deploy_rsa.enc .idea phpvms.iml
tar -czvf $PKG_NAME.tar.gz -C $TRAVIS_BUILD_DIR .
tar -czf $PKG_NAME.tar.gz -C $TRAVIS_BUILD_DIR .
rsync -r --delete-after --quiet $PKG_NAME.tar.gz downloads@phpvms.net:/var/www/downloads/

View File

@ -66,7 +66,7 @@ schema:
.PHONY: deploy-package
deploy-package:
./deploy_script.sh
./.travis/deploy_script.sh
.PHONY: docker
docker: