-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
47 lines (36 loc) · 967 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
43
44
45
46
47
dist: xenial
language: php
php:
- 7.2
- 7.3
- 7.4
- 8.0
- 8.1
cache:
directories:
- $HOME/.cache/composer
env:
- PHPUNIT_CONFIG="phpunit.xml.dist"
matrix:
include:
- php: 7.3
env: RUN_COVERAGE="yes"
branches:
only:
- master
before_script:
- phpenv config-rm xdebug.ini || true
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- composer update --no-suggest --prefer-dist
script:
- composer validate --strict
- if [ "$PHPUNIT_CONFIG" != "" ] ; then vendor/bin/phpunit -c $PHPUNIT_CONFIG --colors=always ; fi
- |
if [ "$RUN_COVERAGE" != "" ] ; then
php -dzend_extension=xdebug.so vendor/bin/phpunit --coverage-clover=coverage.xml --colors=always
bash <(curl -s https://codecov.io/bash) || echo "Error while collecting coverage reports"
fi
notifications:
email: false
git:
depth: 1