This repository has been archived by the owner on Jul 25, 2023. It is now read-only.
forked from overblog/GraphiQLBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
60 lines (53 loc) · 2.2 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
language: php
git:
depth: 50
branches:
only:
- master
- /^\d+\.\d+$/
matrix:
fast_finish: true
include:
- php: 5.6
- php: 5.6
env: COMPOSER_UPDATE_FLAGS=--prefer-lowest
- php: 7.0
- php: 7.1
env: COMPOSER_UPDATE_FLAGS=--prefer-lowest
- php: 7.1
- php: 7.2
env: SYMFONY_VERSION=3.4.* GRAPHQLBUNDLE_VERSION=0.10.*
- php: 7.2
env: SYMFONY_VERSION=3.4.*
- php: 7.2
env: SYMFONY_VERSION=4.0.*
- php: 7.3
env: SYMFONY_VERSION=4.1.*
- php: 7.3
env: SYMFONY_VERSION=4.3.* TEST_COVERAGE=true
- php: 7.3
env: SYMFONY_VERSION=4.4.*
- php: 7.3
env: SYMFONY_VERSION=5.0.*
- php: nightly
env: COMPOSER_UPDATE_FLAGS=--ignore-platform-reqs
allow_failures:
- php: nightly
env: COMPOSER_UPDATE_FLAGS=--ignore-platform-reqs
cache:
directories:
- $HOME/.composer/cache
- $HOME/.php_cs.cache
before_install:
- if [ "$DEPENDENCIES" = "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
- if [ "${TEST_COVERAGE}" != "true" ]; then phpenv config-rm xdebug.ini || true; fi;
- composer selfupdate
- if [ "${SYMFONY_VERSION}" != "" ]; then perl -pi -e 's#"(symfony/.*)":\s*".*"#"$1":"'"${SYMFONY_VERSION}"'"#' composer.json; fi;
- if [ $GRAPHQLBUNDLE_VERSION ]; then composer require "overblog/graphql-bundle:${GRAPHQLBUNDLE_VERSION}" --dev --no-update; fi;
install: composer update --prefer-source --no-interaction --optimize-autoloader ${COMPOSER_UPDATE_FLAGS}
script:
- ./bin/phpunit --debug $( if [ "$TEST_COVERAGE" = "true" ]; then echo "-d xdebug.max_nesting_level=1000 --coverage-clover=build/logs/clover.xml"; fi; )
- if [ "${TEST_COVERAGE}" = "true" ]; then composer check-cs; fi;
after_script:
- if [ "${TEST_COVERAGE}" = "true" ]; then wget https://scrutinizer-ci.com/ocular.phar && travis_retry php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi;
- if [ "${TEST_COVERAGE}" = "true" ]; then composer require "satooshi/php-coveralls:^1.0" && travis_retry php ./vendor/bin/coveralls -v; fi;