forked from nelmio/alice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
58 lines (50 loc) · 1.33 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
language: php
cache:
directories:
- "$HOME/.composer/cache"
php:
- '7.0'
- '7.1'
- nightly
env:
global:
- PHPUNIT_FLAGS='--stop-on-failure --verbose'
matrix:
fast_finish: true
include:
- php: '7.0'
env: COVERAGE='true'
- 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
- phpenv config-rm xdebug.ini || true
- |
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
- |
if [ -n "$COVERAGE" ]; then
PHPUNIT_BIN="phpdbg -qrr $PHPUNIT_BIN"
PHPUNIT_FLAGS="$PHPUNIT_FLAGS --testdox --coverage-text --exclude-group=integration"
fi
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: $PHPUNIT_BIN -c $PHPUNIT_CONFIG $PHPUNIT_FLAGS
notifications:
email: false