forked from ezsystems/ez-support-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (24 loc) · 811 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
language: php
matrix:
include:
- php: 5.6
- php: 7.0
- php: 7.1
env: CHECK_CS=true
# test only master (+ Pull requests)
branches:
only:
- master
before_script:
# re-enable when / if coverage is disabled for faster test runs
#- phpenv config-rm xdebug.ini
- travis_retry composer selfupdate
# Avoid memory issues on composer install
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
# Install packages
- travis_retry composer install --prefer-dist --no-interaction
script:
- php bin/phpunit --coverage-text
- if [ "$CHECK_CS" == "true" ]; then phpenv config-rm xdebug.ini && bin/php-cs-fixer fix -v --dry-run --diff --show-progress=estimating; fi
notifications:
email: false