2013-07-23 00:59:51 +04:00
language : php
2017-11-14 20:19:24 +03:00
dist : trusty
sudo : false
2015-03-08 20:13:10 +03:00
2018-12-05 10:13:55 +03:00
stages :
2018-12-05 12:24:47 +03:00
- Code Format and Static Analysis
2019-02-03 00:09:56 +03:00
- Units
2018-12-05 10:13:55 +03:00
- Test CommonMark (weak)
matrix :
2015-03-08 20:13:10 +03:00
fast_finish : true
allow_failures :
2018-12-05 12:32:28 +03:00
- env : ALLOW_FAILURE
2016-09-05 23:04:46 +03:00
2018-12-05 11:03:43 +03:00
cache :
directories :
- $HOME/.composer/cache
2018-12-05 10:13:55 +03:00
jobs :
include :
2018-12-05 12:24:47 +03:00
- stage : Code Format and Static Analysis
2019-01-20 06:16:36 +03:00
php : 7.3
2018-12-05 11:19:00 +03:00
install : composer install --prefer-dist --no-interaction --no-progress
2018-12-05 10:13:55 +03:00
script :
- '[ -z "$TRAVIS_TAG" ] || [ "$TRAVIS_TAG" == "$(php -r "require(\"vendor/autoload.php\"); echo Erusev\Parsedown\Parsedown::version;")" ]'
2018-12-05 13:33:37 +03:00
- composer test-static
2018-12-05 10:13:55 +03:00
- composer test-formatting
2019-01-21 21:21:34 +03:00
- composer test-dead-code
2018-12-05 10:13:55 +03:00
2019-02-03 00:09:56 +03:00
- &UNIT_TEST
stage : Units
php : 5.5
install :
# remove packages with PHP requirements higher than 7.0 to prevent composer trying to resolve these, see: https://github.com/composer/composer/issues/6011
- composer remove vimeo/psalm friendsofphp/php-cs-fixer infection/infection --dev --no-update --no-interaction
- composer install --prefer-dist --no-interaction --no-progress
script : composer test-units
- << : *UNIT_TEST
php : 5.6
- << : *UNIT_TEST
php : 7.0
2019-02-03 02:18:08 +03:00
- &MUTATION_AND_UNIT_TEST
<< : *UNIT_TEST
2019-02-03 00:09:56 +03:00
php : 7.1
2019-02-03 02:18:08 +03:00
install :
- composer install --prefer-dist --no-interaction --no-progress
script :
- composer test-units
2019-02-03 03:55:39 +03:00
- vendor/bin/infection --show-mutations --threads=4 --min-msi=80 --min-covered-msi=80
2019-02-03 02:18:08 +03:00
- << : *MUTATION_AND_UNIT_TEST
2019-02-03 00:09:56 +03:00
php : 7.2
2019-02-03 02:18:08 +03:00
- << : *MUTATION_AND_UNIT_TEST
2019-02-03 00:09:56 +03:00
php : 7.3
- << : *UNIT_TEST
php : nightly
env : ALLOW_FAILURE
- &COMMONMARK_TEST
stage : CommonMark
2019-01-28 23:41:56 +03:00
name : Weak
2019-01-20 06:16:36 +03:00
php : 7.3
2018-12-05 12:32:28 +03:00
env : ALLOW_FAILURE
2018-12-05 11:19:00 +03:00
install : composer install --prefer-dist --no-interaction --no-progress
2018-12-05 10:13:55 +03:00
script :
2018-12-05 12:32:28 +03:00
- composer test-commonmark-weak
2019-01-28 23:41:56 +03:00
2019-02-03 00:09:56 +03:00
- << : *COMMONMARK_TEST
2019-01-28 23:41:56 +03:00
name : Strict
script :
- composer test-commonmark