6
6
directories :
7
7
- $HOME/.composer/cache/files
8
8
9
- php :
10
- - 7.0
11
- - 7.1
12
-
13
9
env :
14
10
global :
15
11
- TEST_COMMAND="composer test"
16
- matrix :
17
- - SYMFONY_VERSION=3.2.*
18
- - SYMFONY_VERSION=2.8.*
19
- - SYMFONY_VERSION=2.7.*
12
+ - SYMFONY_PHPUNIT_VERSION="6.3"
20
13
21
14
branches :
22
15
except :
@@ -25,18 +18,53 @@ branches:
25
18
matrix :
26
19
fast_finish : true
27
20
include :
21
+ # Test with lowest dependencies
22
+ - php : 7.2
23
+ env : COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak"
28
24
- php : 7.0
29
- env : SYMFONY_VERSION="3.2.* graphaware/neo4j-php-ogm:^1.0" COVERAGE=true TEST_COMMAND="composer test-ci"
25
+ env : COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak"
26
+
27
+ # Test the latest stable release
30
28
- php : 7.0
31
- env : COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_VERSION=2.7.*
29
+ - php : 7.1
30
+ - php : 7.2
31
+ env : COVERAGE=true TEST_COMMAND="composer test-ci" DEPENDENCIES="graphaware/neo4j-php-ogm:^1.0@rc"
32
+
33
+ # Force some major versions of Symfony
34
+ - php : 7.2
35
+ env : DEPENDENCIES="dunglas/symfony-lock:^2"
36
+ - php : 7.2
37
+ env : DEPENDENCIES="dunglas/symfony-lock:^3"
38
+ - php : 7.2
39
+ env : DEPENDENCIES="dunglas/symfony-lock:^4"
40
+
41
+ # Latest commit to master
42
+ - php : 7.2
43
+ env : STABILITY="dev"
44
+
45
+ allow_failures :
46
+ # Dev-master is allowed to fail.
47
+ - env : STABILITY="dev"
48
+
49
+ before_install :
50
+ - if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi
51
+ - if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi;
52
+ - if ! [ -z "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi;
32
53
33
54
install :
34
- - composer require symfony/symfony:${SYMFONY_VERSION} --no-update
35
- - travis_retry composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction
55
+ # To be removed when this issue will be resolved: https://github.com/composer/composer/issues/5355
56
+ - if [[ "$COMPOSER_FLAGS" == *"--prefer-lowest"* ]]; then composer update --prefer-dist --no-interaction --prefer-stable --quiet; fi
57
+ - composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction
58
+ - vendor/bin/simple-phpunit install
36
59
37
60
script :
61
+ - composer validate --strict --no-check-lock
38
62
- $TEST_COMMAND
39
63
40
64
after_success :
41
- - if [[ $COVERAGE = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
42
- - if [[ $COVERAGE = true ]]; then php ocular.phar code-coverage:upload --format=php-clover build/coverage.xml; fi
65
+ - if [[ "$COVERAGE" = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
66
+ - if [[ "$COVERAGE" = true ]]; then php ocular.phar code-coverage:upload --format=php-clover build/coverage.xml; fi
67
+
68
+ after_script :
69
+ - wget http://tnyholm.se/reporter.phar
70
+ - php reporter.phar build:upload
0 commit comments