forked from mlocati/composer-patcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (35 loc) · 782 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
39
40
41
42
language: php
php:
- 5.4
- 5.5
- 5.6
- 7
- 7.1
- nightly
env:
global:
- DO_CODESTYLE=0
- DO_TEST=1
matrix:
allow_failures:
-
php: nightly
include:
-
dist: precise
php: 5.3
-
php: 7.2
env:
- DO_CODESTYLE=1
before_install:
- phpenv config-rm xdebug.ini || true
install:
- if test $DO_CODESTYLE -eq 0; then composer --no-interaction remove --dev --no-update --no-scripts friendsofphp/php-cs-fixer; fi
- travis_retry composer --no-interaction install
script:
- if test $DO_CODESTYLE -ne 0; then composer --no-interaction codestyle -- --no-interaction --dry-run --diff -- .; fi
- if test $DO_TEST -ne 0; then composer --no-interaction test; fi
cache:
directories:
- $HOME/.composer/cache