mirror of
https://github.com/KnpLabs/KnpMarkdownBundle.git
synced 2024-06-28 10:20:03 +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
|
language: php
|
||||||
|
|
||||||
|
sudo: false
|
||||||
|
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- $HOME/.composer/cache/files
|
||||||
|
|
||||||
php:
|
php:
|
||||||
- 5.3
|
- 5.3
|
||||||
- 5.4
|
- 5.4
|
||||||
|
@ -9,12 +15,19 @@ php:
|
||||||
- hhvm
|
- hhvm
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
allow_failures:
|
include:
|
||||||
- php: 7.0
|
# Test against lowest bounds of dependencies to ensure they are right
|
||||||
- php: hhvm
|
- php: 5.6
|
||||||
|
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
|
||||||
|
# Test against dev versions of dependencies
|
||||||
|
- php: 5.6
|
||||||
|
env: deps=dev
|
||||||
|
|
||||||
before_script:
|
before_install:
|
||||||
- composer install
|
- if [ "$deps" = 'dev' ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
|
||||||
|
|
||||||
|
install:
|
||||||
|
- composer update $COMPOSER_FLAGS
|
||||||
|
|
||||||
script: phpunit --coverage-text
|
script: phpunit --coverage-text
|
||||||
|
|
||||||
|
|
|
@ -299,6 +299,19 @@ EOF;
|
||||||
8. Parish
|
8. Parish
|
||||||
EOF;
|
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));
|
$this->assertSame($html, $parser->transform($text));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue