-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
33 lines (32 loc) · 1.49 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
sudo: false
language: php
php:
- 7.0
env:
matrix:
- THEME_DIR=web/app/themes/thepoliticalsage
global:
secure: fuVMxuy5dz0lyUpTgC10/kmpTt4Io9T8KGamgWAPwThCJRGQyuflK/ROr/OrDS4qjyg1JQMbNnJkZKubWnC1MzcLzNeaC42Klf98oYcMP2nvhMSX8t6JpL1FFel3Vcph7w76A6pGn4lCiXvahQ6JjKzDTYP8vC976HIUikjYVSX4BMe8LY2XU/4tB8YUAThqdMlyxLOvBzxr5Dnw8SvJq2pBSanJWscWS6piP5YHcMqR/EnzR5cKTihr5NHQOD1+FTBy3tne9DQLYmNZ41aR+KzB2TKt8ho1Nd+6rUPaGV4/RPuro1yqgCgLp8fZjW5VdLe++8uv7TVPJ5Y24Xu4ukLtHufzmaj5WGRZTNRaaP+W1Q5DDfQ4PZ5FI5n/AfQn38O9PncA446GejF2CT7j96tcloD0IfXJwZe+YPu8uRyJeMtDGXyAY9YZb3fcmTCJ6I93AH0JZxSFAVrFby3ylgZzpMKpPmWuZEW4eS33hElR0bMh/TjdCEEns0f2Koz0nknReqtxy95Gmb6gKk3BUFXvI/unofGpauyeETjFAYxbQKZ+3Hnna6el1cG8myS/4Afqfa7zTgCoXytUOojfyhT5CODt1plNMV4Y8h8+OviuwMjt2KWtzxbwtP3yOYSK9fuZIySDXJ/1ITmawrIxOlEUY4CtGx8JBuHje6UEuc4=
branches:
only:
- master
- production
install:
- composer self-update && composer --version
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- composer global require squizlabs/php_codesniffer
# Install Capistrano and dependencies
- gem install bundler
- bundler install
# Set up SSH permissions
- "openssl aes-256-cbc -k $DEPLOY_KEY -in config/deploy_id_rsa_enc_travis -d -a -out config/deploy_id_rsa"
- chmod 600 config/deploy_id_rsa
- echo -e "Host <deploy host>\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- eval "$(ssh-agent)"
- ssh-add config/deploy_id_rsa
before_script:
- cd $THEME_DIR
script:
- phpcs --standard=ruleset.xml --extensions=php -n -s .
- cd $TRAVIS_BUILD_DIR
- bash config/travis-deploy.sh