mirror of https://github.com/rusefi/msqur.git
redo travis CI
This commit is contained in:
parent
0a461ccbcf
commit
d303e703d0
|
@ -16,10 +16,9 @@ script: phpunit tests
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: script
|
provider: script
|
||||||
script: travis-deploy.sh
|
script: deploy.sh
|
||||||
on:
|
on:
|
||||||
branch: msqur.com
|
branch: msqur.com
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- openssl aes-256-cbc -K $encrypted_63cff28d8c75_key -iv $encrypted_63cff28d8c75_iv
|
- openssl aes-256-cbc -K $encrypted_63cff28d8c75_key -iv $encrypted_63cff28d8c75_iv -in .travis/deploy_key.pem.enc -out .travis/deploy_key.pem -d
|
||||||
-in .travis/deploy_key.pem.enc -out .travis/deploy_key.pem -d
|
|
||||||
|
|
14
deploy.sh
14
deploy.sh
|
@ -1,4 +1,12 @@
|
||||||
. script.config
|
#. script.config
|
||||||
|
|
||||||
rsync -av --delete --exclude='*/.git*:.svn*' src/ $DEPLOY_DIR/
|
eval "$(ssh-agent -s)"
|
||||||
cp -v VERSION $DEPLOY_DIR/ > /dev/null 2>&1
|
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
|
||||||
|
|
|
@ -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
|
|
Loading…
Reference in New Issue