... | ... |
@@ -6,28 +6,34 @@ cache: |
6 | 6 |
- extra/*/vendor |
7 | 7 |
- $HOME/.composer/cache/files |
8 | 8 |
|
9 |
+env: |
|
10 |
+ global: |
|
11 |
+ - SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT=1 |
|
12 |
+ - SYMFONY_PHPUNIT_DISABLE_RESULT_CACHE=1 |
|
13 |
+ |
|
9 | 14 |
before_install: |
10 | 15 |
- phpenv config-rm xdebug.ini || return 0 |
11 | 16 |
|
12 | 17 |
install: |
13 | 18 |
- travis_retry composer install |
14 |
- - (cd extra/cssinliner-extra && travis_retry composer install) |
|
15 |
- - (cd extra/html-extra && travis_retry composer install) |
|
16 |
- - (cd extra/inky-extra && travis_retry composer install) |
|
17 |
- - (cd extra/intl-extra && travis_retry composer install) |
|
18 |
- - (cd extra/markdown-extra && travis_retry composer install) |
|
19 |
+ - ([[ $TRAVIS_PHP_VERSION = 7.0 ]] || cd extra/cssinliner-extra && travis_retry composer install) |
|
20 |
+ - ([[ $TRAVIS_PHP_VERSION = 7.0 ]] || cd extra/html-extra && travis_retry composer install) |
|
21 |
+ - ([[ $TRAVIS_PHP_VERSION = 7.0 ]] || cd extra/inky-extra && travis_retry composer install) |
|
22 |
+ - ([[ $TRAVIS_PHP_VERSION = 7.0 ]] || cd extra/intl-extra && travis_retry composer install) |
|
23 |
+ - ([[ $TRAVIS_PHP_VERSION = 7.0 ]] || cd extra/markdown-extra && travis_retry composer install) |
|
19 | 24 |
|
20 | 25 |
script: |
21 | 26 |
- ./vendor/bin/simple-phpunit |
22 |
- - (cd extra/cssinliner-extra && ./vendor/bin/simple-phpunit) |
|
23 |
- - (cd extra/html-extra && ./vendor/bin/simple-phpunit) |
|
24 |
- - (cd extra/inky-extra && ./vendor/bin/simple-phpunit) |
|
25 |
- - (cd extra/intl-extra && ./vendor/bin/simple-phpunit) |
|
26 |
- - (cd extra/markdown-extra && ./vendor/bin/simple-phpunit) |
|
27 |
+ - ([[ $TRAVIS_PHP_VERSION = 7.0 ]] || cd extra/cssinliner-extra && ./vendor/bin/simple-phpunit) |
|
28 |
+ - ([[ $TRAVIS_PHP_VERSION = 7.0 ]] || cd extra/html-extra && ./vendor/bin/simple-phpunit) |
|
29 |
+ - ([[ $TRAVIS_PHP_VERSION = 7.0 ]] || cd extra/inky-extra && ./vendor/bin/simple-phpunit) |
|
30 |
+ - ([[ $TRAVIS_PHP_VERSION = 7.0 ]] || cd extra/intl-extra && ./vendor/bin/simple-phpunit) |
|
31 |
+ - ([[ $TRAVIS_PHP_VERSION = 7.0 ]] || cd extra/markdown-extra && ./vendor/bin/simple-phpunit) |
|
27 | 32 |
|
28 | 33 |
jobs: |
29 | 34 |
fast_finish: true |
30 | 35 |
include: |
36 |
+ - php: 7.0 |
|
31 | 37 |
- php: 7.1 |
32 | 38 |
- php: 7.2 |
33 | 39 |
- php: 7.3 |
... | ... |
@@ -21,7 +21,7 @@ class FilesystemTest extends TestCase |
21 | 21 |
private $directory; |
22 | 22 |
private $cache; |
23 | 23 |
|
24 |
- protected function setUp(): void |
|
24 |
+ protected function setUp() |
|
25 | 25 |
{ |
26 | 26 |
$nonce = hash('sha256', uniqid(mt_rand(), true)); |
27 | 27 |
$this->classname = '__Twig_Tests_Cache_FilesystemTest_Template_'.$nonce; |
... | ... |
@@ -29,7 +29,7 @@ class FilesystemTest extends TestCase |
29 | 29 |
$this->cache = new FilesystemCache($this->directory); |
30 | 30 |
} |
31 | 31 |
|
32 |
- protected function tearDown(): void |
|
32 |
+ protected function tearDown() |
|
33 | 33 |
{ |
34 | 34 |
if (file_exists($this->directory)) { |
35 | 35 |
FilesystemHelper::removeDir($this->directory); |