forked from ezsystems/ez-support-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 lines (28 loc) · 819 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
dist: xenial
sudo: required
language: php
cache:
directories:
- $HOME/.composer/cache/files
matrix:
fast_finish: true
include:
- php: 7.3
env: CHECK_CS=true
# test only on matching branches (+ Pull requests)
branches:
only:
- master
- /^\d.\d+$/
before_script:
- travis_retry composer selfupdate
# Avoid memory issues on composer install
- phpenv config-rm xdebug.ini
- 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 vendor/bin/phpunit
- if [ "$CHECK_CS" = "true" ]; then vendor/bin/php-cs-fixer fix -v --dry-run --diff --show-progress=estimating; fi
notifications:
email: false