mirror of
https://github.com/KnpLabs/KnpMarkdownBundle.git
synced 2024-06-25 08:50:23 +02:00
Merge pull request #79 from stof/better_travis
Improve the Travis setup
This commit is contained in:
commit
0572aec4b2
23
.travis.yml
23
.travis.yml
|
@ -1,5 +1,11 @@
|
|||
language: php
|
||||
|
||||
sudo: false
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.composer/cache/files
|
||||
|
||||
php:
|
||||
- 5.3
|
||||
- 5.4
|
||||
|
@ -9,12 +15,19 @@ php:
|
|||
- hhvm
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
- php: 7.0
|
||||
- php: hhvm
|
||||
include:
|
||||
# Test against lowest bounds of dependencies to ensure they are right
|
||||
- php: 5.6
|
||||
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
|
||||
# Test against dev versions of dependencies
|
||||
- php: 5.6
|
||||
env: deps=dev
|
||||
|
||||
before_script:
|
||||
- composer install
|
||||
before_install:
|
||||
- if [ "$deps" = 'dev' ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
|
||||
|
||||
install:
|
||||
- composer update $COMPOSER_FLAGS
|
||||
|
||||
script: phpunit --coverage-text
|
||||
|
||||
|
|
|
@ -299,6 +299,19 @@ EOF;
|
|||
8. Parish
|
||||
EOF;
|
||||
|
||||
// Since version 1.5.0, the ordered lists support this new feature.
|
||||
if (property_exists($parser, 'enhanced_ordered_list')) {
|
||||
|
||||
$html = <<<EOF
|
||||
<ol start="3">
|
||||
<li>Bird</li>
|
||||
<li>McHale</li>
|
||||
<li>Parish</li>
|
||||
</ol>
|
||||
|
||||
EOF;
|
||||
}
|
||||
|
||||
$this->assertSame($html, $parser->transform($text));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue