-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy path.travis.yml
38 lines (31 loc) · 894 Bytes
/
.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
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
- $HOME/.app/cache
env:
global:
- CHECK_PHP_SYNTAX="no"
matrix:
fast_finish: true
include:
- php: 7.0
env: CHECK_PHP_SYNTAX="yes"
- php: 5.6
- php: 5.5
- php: 5.4
- php: 5.3
allow_failures:
- php: 7.0
before_install:
- echo 'memory_limit=-1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- phpenv config-rm xdebug.ini
- composer selfupdate
install:
- if [[ "$CHECK_PHP_SYNTAX" == "yes" ]]; then curl http://get.sensiolabs.org/php-cs-fixer.phar -o php-cs-fixer; fi;
- composer install
script:
- phpunit
- if [[ "$CHECK_PHP_SYNTAX" == "yes" ]]; then php php-cs-fixer --no-interaction --dry-run --diff -v fix; fi;
- if [[ "$CHECK_PHP_SYNTAX" == "yes" ]]; then mv ./.php_cs.cache $HOME/.app/cache/.php_cs.cache; fi;