2013-07-22 22:59:51 +02:00
language : php
2017-11-14 18:19:24 +01:00
dist : trusty
sudo : false
2015-03-08 18:13:10 +01:00
2018-12-05 08:13:55 +01:00
stages :
2018-12-05 10:24:47 +01:00
- Code Format and Static Analysis
2018-12-05 08:13:55 +01:00
- test
- Test CommonMark (weak)
php :
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- nightly
matrix :
2015-03-08 18:13:10 +01:00
fast_finish : true
allow_failures :
2016-10-13 22:17:03 +02:00
- php : nightly
2018-12-05 10:19:07 +01:00
- php : 7.3
2018-12-05 10:32:28 +01:00
- env : ALLOW_FAILURE
2016-09-05 22:04:46 +02:00
install :
2018-12-05 10:24:47 +01:00
# remove packages with PHP requirements higher than 7.0 to prevent composer trying to resolve these, see: https://github.com/composer/composer/issues/6011
2018-12-05 11:33:37 +01:00
- composer remove vimeo/psalm friendsofphp/php-cs-fixer --dev --no-update --no-interaction
2017-11-11 04:02:11 +01:00
- composer install --prefer-dist --no-interaction --no-progress
2016-10-09 14:17:03 +02:00
2018-12-05 09:19:00 +01:00
script : composer test-units
2018-12-05 08:13:55 +01:00
2018-12-05 09:03:43 +01:00
cache :
directories :
- $HOME/.composer/cache
2018-12-05 08:13:55 +01:00
jobs :
include :
2018-12-05 10:24:47 +01:00
- stage : Code Format and Static Analysis
2018-12-05 08:13:55 +01:00
php : 7.2
2018-12-05 09:19:00 +01:00
install : composer install --prefer-dist --no-interaction --no-progress
2018-12-05 08:13:55 +01:00
script :
- '[ -z "$TRAVIS_TAG" ] || [ "$TRAVIS_TAG" == "$(php -r "require(\"vendor/autoload.php\"); echo Erusev\Parsedown\Parsedown::version;")" ]'
2018-12-05 11:33:37 +01:00
- composer test-static
2018-12-05 08:13:55 +01:00
- composer test-formatting
- stage : Test CommonMark (weak)
php : 7.2
2018-12-05 10:32:28 +01:00
env : ALLOW_FAILURE
2018-12-05 09:19:00 +01:00
install : composer install --prefer-dist --no-interaction --no-progress
2018-12-05 08:13:55 +01:00
script :
2018-12-05 10:32:28 +01:00
- composer test-commonmark-weak