forked from doctrine/phpcr-odm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
55 lines (46 loc) · 1.66 KB
/
.travis.yml
File metadata and controls
55 lines (46 loc) · 1.66 KB
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
language: php
php:
- 7.1
- 7.2
- 7.3
sudo: false
cache:
directories:
- $HOME/.composer/cache/files
env:
matrix:
- TRANSPORT=jackrabbit
- TRANSPORT=doctrine_dbal
matrix:
fast_finish: true
include:
- php: 7.1
env: TRANSPORT=jackrabbit COMPOSER_FLAGS="--prefer-lowest"
- php: 7.2
env: TRANSPORT=doctrine_dbal DEPENDENCIES="symfony/lts:^3" PHPBENCH="yes"
- php: 7.2
env: TRANSPORT=jackrabbit DEPENDENCIES="symfony/lts:^3" PHPBENCH="yes"
- php: 7.2
env: TRANSPORT=doctrine_dbal COVERAGE=true DEPENDENCIES="symfony/symfony:^4.0" PHPBENCH="yes"
- php: 7.2
env: TRANSPORT=jackrabbit COVERAGE=true DEPENDENCIES="symfony/symfony:^4.0" PHPBENCH="yes"
- php: 7.2
env: TRANSPORT=doctrine_dbal STABILITY="dev"
- php: 7.2
env: TRANSPORT=jackrabbit STABILITY="dev"
before_install:
- echo "memory_limit = -1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi
- if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi;
- if ! [ -v "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi;
- if [ "$PHPBENCH" = "yes" ]; then composer require --no-update phpbench/phpbench=~1.0@dev; fi;
install:
# this also does the composer update
- ./tests/travis_${TRANSPORT}.sh
script:
- composer validate --strict --no-check-lock
- vendor/bin/phpunit -c tests/phpunit_${TRANSPORT}.xml.dist
- if [ "$PHPBENCH" = "yes" ]; then php vendor/bin/phpbench run --report=all; fi;
notifications:
irc: "irc.freenode.org#symfony-cmf"
email: "symfony-cmf-devs@googlegroups.com"