redo travis CI

This commit is contained in:
Nick 2019-10-14 21:10:49 -05:00
parent 0a461ccbcf
commit d303e703d0
3 changed files with 13 additions and 12 deletions

View File

@ -16,10 +16,9 @@ script: phpunit tests
deploy:
provider: script
script: travis-deploy.sh
script: deploy.sh
on:
branch: msqur.com
before_install:
- openssl aes-256-cbc -K $encrypted_63cff28d8c75_key -iv $encrypted_63cff28d8c75_iv
-in .travis/deploy_key.pem.enc -out .travis/deploy_key.pem -d
- openssl aes-256-cbc -K $encrypted_63cff28d8c75_key -iv $encrypted_63cff28d8c75_iv -in .travis/deploy_key.pem.enc -out .travis/deploy_key.pem -d

View File

@ -1,4 +1,12 @@
. script.config
#. script.config
rsync -av --delete --exclude='*/.git*:.svn*' src/ $DEPLOY_DIR/
cp -v VERSION $DEPLOY_DIR/ > /dev/null 2>&1
eval "$(ssh-agent -s)"
chmod 600 .travis/deploy_key.pem
ssh-add .travis/deploy_key.pem
#TODO Run backup script on remote
rsync -av --delete --exclude='*/.git*:.svn*:*/config.php' src/ $DEPLOY_DIR/
rm .travis/deploy_key.pem
#cp -v VERSION $DEPLOY_DIR/ > /dev/null 2>&1

View File

@ -1,6 +0,0 @@
eval "$(ssh-agent -s)"
chmod 600 .travis/deploy_key.pem
ssh-add .travis/deploy_key.pem
git remote add deploy $DEPLOY_REPO
git push deploy