-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
36 lines (30 loc) · 2.08 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
language: php
sudo: false
addons:
apt:
packages:
- sshpass
before_script:
- composer install --prefer-source
- npm install
- npm install -g jest-cli
script:
- phpunit
- jest
- gulp --dist
after_success:
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && export SYMFONY_ENV=prod && composer install --no-dev -o
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && mkdir build
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && mv * build
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && tar -czf package.tgz build --exclude="doc" --exclude="gulpfile.js" --exclude="node_modules" --exclude="package.json" --exclude="phpunit.xml" --exclude="README.md" --exclude="web/app_dev.php" --exclude="web/config.php"
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && export SSHPASS=$DEPLOY_PASS
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && sshpass -e scp -o stricthostkeychecking=no package.tgz $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && sshpass -e ssh $DEPLOY_USER@$DEPLOY_HOST $DEPLOY_PATH/deploy.sh
env:
global:
- secure: "ZvSbxBR2g5M8UUWUQ9BJHcW2ril70dlsydHK2ZT/w14/Am6TV44B1PoHU+ELw9U78T1oPg74bdqc63avSzXshOfXk+xWQXZj9WdSAZ55XLUeRaa3ndsj69JP80Fet2Wh2kpk3hdwFeriXH0fMK/6L31UdWhpAUfNrHHUWZqg53E="
- secure: "Oub9zOaEq8/uF4AvPLoErFi4RVOmmASCyJqBGJwwSBnxdPJmf6m570Prra9KR7oXOX/Mn+E9XxGKsehXkoPuOYUxAHBxkH2iOmNSQrs8aN6UkY3iKI4e/dHu8E86mwxkKQYqfxJnHTnUpdiCF8xUMUOJDaRi/8LxfbViQSK1wj8="
- secure: "K20JAsU0L//3B7JpDhh5rDv65mZSsMCXiqSQ4aD3t+pBWLjH36W19P6+CQwjcv3tcW1/iBnpnwmobOHp4r/q/HAO/hEGPG0neykYhv2np3EFNf+AE2Z4X22ho4zIXm2lgsaKlv2FzR8JbdkIr+VVnjvJae5b+uhoKCyo2g70vj8="
- secure: "VzEGxwsasDMtSrEJWPTXM4cE1t3Cf+WNYXKjRluxJMSJwI+yznwBCdZxvzK7UH2bAzp/yENfrY28EX3gQbM5zKlf26wglC7KfPuBtMWl6qiJ1qUdNcOBjupSCK7Wxj69kqCxICoTWw7rXufh9ysGzDs/O4izhDoQraF0/uFf+s0="
notifications:
email: false