forked from nelmio/alice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (54 loc) · 1.45 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
language: php
cache:
directories:
- "$HOME/.composer/cache"
php:
- '7.0'
- '7.1'
- nightly
matrix:
fast_finish: true
include:
- php: '7.0'
env: COVERAGE='true'
- php: '7.0'
env: SYMFONY_VERSION='^3.0'
- php: '7.0'
env: SYMFONY_VERSION='^3.1'
- php: '7.0'
env: SYMFONY_VERSION='^3.2@dev'
allow_failures:
- php: nightly
- env: SYMFONY_VERSION='^3.2@dev'
before_install:
- set -eo pipefail
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- |
if [ "nightly" != "$TRAVIS_PHP_VERSION" ] && [ "7.1" != "$TRAVIS_PHP_VERSION" ]; then
phpenv config-rm xdebug.ini
fi
- |
if [ -n "$SYMFONY_VERSION" ]; then
PHPUNIT_BIN=vendor-bin/symfony/bin/phpunit
PHPUNIT_CONFIG=phpunit_symfony.xml.dist
else
PHPUNIT_BIN=bin/phpunit
PHPUNIT_CONFIG=phpunit.xml.dist
fi
- PHPUNIT_FLAGS='--stop-on-failure --verbose'
install:
- composer install --prefer-dist $COMPOSER_FLAGS
- |
if [ -n "$SYMFONY_VERSION" ]; then
composer bin symfony require --no-update symfony/symfony "symfony/symfony:${SYMFONY_VERSION}"
fi
- composer bin all install
script:
- |
if [ -n "$COVERAGE" ]; then
phpdbg -qrr $PHPUNIT_BIN -c $PHPUNIT_CONFIG $PHPUNIT_FLAGS --testdox --coverage-text --exclude-group=integration
else
$PHPUNIT_BIN -c $PHPUNIT_CONFIG $PHPUNIT_FLAGS
fi
notifications:
email: false