-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
46 lines (35 loc) · 1.19 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
37
38
39
40
41
42
43
44
45
46
language: php
sudo: false
php:
- '7.0'
install:
- composer install
cache:
directories:
- ${HOME}/.composer/cache
script:
- phpunit --coverage-clover=coverage.xml
after_success:
# Coverage reporting
- bash <(curl -s https://codecov.io/bash)
# SSH key prepare
- mv app/integration/deploy.key.gpg .
- gpg --yes --batch --passphrase=${DEPLOY_KEY_PASSWORD} deploy.key.gpg
- chmod 600 deploy.key
- mv deploy.key ~/.ssh
- ssh-keyscan ${DEPLOY_SSH_HOST} >> ~/.ssh/known_hosts
- echo "Host deploy" >> ~/.ssh/config
- echo " HostName ${DEPLOY_SSH_HOST}" >> ~/.ssh/config
- echo " User ${DEPLOY_SSH_USER}" >> ~/.ssh/config
- echo " IdentityFile ~/.ssh/deploy.key" >> ~/.ssh/config
# Deploying with git
- git config --global push.default simple
- git remote add deploy ssh://deploy/~/git/rockparade
- git fetch --unshallow || true
- git push deploy master
# Installing dependencies
- ssh deploy /home/deployer/composer.phar install -d /home/deployer/git/rockparade
# Clear Symfony cache
- ssh deploy /home/deployer/git/rockparade/bin/console ca:cl -e prod
notifications:
slack: rockparade:IxVBagXvchm7GgEPukl71YTu