File tree 4 files changed +69
-42
lines changed
4 files changed +69
-42
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ yarn-error.log
25
25
# ##< symfony/framework-bundle ###
26
26
27
27
# ##> symfony/phpunit-bridge ###
28
+ .phpunit
28
29
/phpunit.xml
29
30
# ##< symfony/phpunit-bridge ###
30
31
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ sudo: false
4
4
cache :
5
5
directories :
6
6
- $HOME/.composer/cache/files
7
- - $HOME/symfony-bridge /.phpunit
7
+ - ./bin /.phpunit
8
8
9
9
env :
10
10
global :
11
- - SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge /.phpunit"
11
+ - SYMFONY_PHPUNIT_DIR=./bin /.phpunit
12
12
13
13
matrix :
14
14
fast_finish : true
@@ -25,10 +25,10 @@ before_install:
25
25
26
26
install :
27
27
- composer install
28
- - ./vendor/ bin/simple- phpunit install
28
+ - ./bin/phpunit install
29
29
30
30
script :
31
- - ./vendor/ bin/simple- phpunit
31
+ - ./bin/phpunit
32
32
# this checks that the source code follows the Symfony Code Syntax rules
33
33
- ' [[ "$TRAVIS_PHP_VERSION" == "nightly" ]] || ./vendor/bin/php-cs-fixer fix --diff --dry-run -v'
34
34
# this checks that the YAML config files contain no syntax errors
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env php
2
+ <?php
3
+
4
+ if (!file_exists (dirname (__DIR__ ).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit ' )) {
5
+ echo "Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`. \n" ;
6
+ exit (1 );
7
+ }
8
+ if (false === getenv ('SYMFONY_PHPUNIT_REMOVE ' )) {
9
+ putenv ('SYMFONY_PHPUNIT_REMOVE= ' );
10
+ }
11
+ if (false === getenv ('SYMFONY_PHPUNIT_VERSION ' )) {
12
+ putenv ('SYMFONY_PHPUNIT_VERSION=6.5 ' );
13
+ }
14
+ if (false === getenv ('SYMFONY_PHPUNIT_DIR ' )) {
15
+ putenv ('SYMFONY_PHPUNIT_DIR= ' .__DIR__ .'/.phpunit ' );
16
+ }
17
+
18
+ require dirname (__DIR__ ).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit ' ;
You can’t perform that action at this time.
0 commit comments