forked from netgen/ibexa-legacy-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (39 loc) · 1.11 KB
/
.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
env:
global:
# In order to specify extra flags like ignoring platform reqs, using only stable packages and so on.
- COMPOSER_FLAGS=""
# run tests on php misc php versions
matrix:
fast_finish: true
include:
- php: 7.1
- php: 7.2
- php: 7.3
env: CHECK_CS=true
cache:
directories:
- "$HOME/.composer/cache"
# test only master (+ Pull requests)
branches:
only:
- master
- /^\d.\d+$/
# setup requirements for running unit tests
before_script:
# Disable xdebug and remove memory limit to speed things up
- phpenv config-rm xdebug.ini
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
# Install packages using composer
- travis_retry composer install --prefer-dist --no-interaction --no-progress $COMPOSER_FLAGS
# execute phpunit as the script command
script:
- composer test
- if [ "$CHECK_CS" != "" ]; then ./vendor/bin/php-cs-fixer fix -v --dry-run --diff --show-progress=estimating; fi
# disable mail notifications
notifications:
email: false
# reduce depth (history) of git checkout
git:
depth: 2