Merge pull request #322 from GrahamCampbell/patch-1
Fixed failing travis builds
This commit is contained in:
commit
2d74367653
2 changed files with 25 additions and 21 deletions
42
.travis.yml
42
.travis.yml
|
|
@ -1,25 +1,29 @@
|
|||
language: php
|
||||
|
||||
sudo: false
|
||||
matrix:
|
||||
include:
|
||||
- php: hhvm-3.18
|
||||
dist: trusty
|
||||
- php: 5.3
|
||||
dist: precise
|
||||
- php: 5.4
|
||||
dist: trusty
|
||||
- php: 5.5
|
||||
dist: trusty
|
||||
- php: 5.6
|
||||
dist: xenial
|
||||
- php: 7.0
|
||||
dist: xenial
|
||||
- php: 7.1
|
||||
dist: bionic
|
||||
- php: 7.2
|
||||
dist: bionic
|
||||
- php: 7.3
|
||||
dist: bionic
|
||||
- php: 7.4
|
||||
dist: bionic
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.composer/
|
||||
|
||||
# Run tests against all these PHP versions
|
||||
# TODO: When it becomes possible in TravisCI, switch 7.4snapshot to plain 7.4
|
||||
php:
|
||||
- 5.4
|
||||
- 5.5
|
||||
- 5.6
|
||||
- 7.0
|
||||
- 7.1
|
||||
- 7.2
|
||||
- 7.3
|
||||
- 7.4snapshot
|
||||
- hhvm
|
||||
|
||||
before_script:
|
||||
install:
|
||||
- composer install --prefer-dist
|
||||
|
||||
script:
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ class MarkdownTestHelper
|
|||
RecursiveRegexIterator::GET_MATCH
|
||||
);
|
||||
|
||||
$dataValues = [];
|
||||
$dataValues = array();
|
||||
|
||||
/** @var SplFileInfo $inputFile */
|
||||
foreach ($regexIterator as $inputFiles) {
|
||||
|
|
@ -31,7 +31,7 @@ class MarkdownTestHelper
|
|||
$expectedHtmlPath = substr($inputMarkdownPath, 0, -4) . 'html';
|
||||
$xhtml = false;
|
||||
}
|
||||
$dataValues[] = [$inputMarkdownPath, $expectedHtmlPath, $xhtml];
|
||||
$dataValues[] = array($inputMarkdownPath, $expectedHtmlPath, $xhtml);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue