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:
|
|
|
|
- Code Style and Static Analysis
|
|
|
|
- test
|
|
|
|
- Test CommonMark (weak)
|
|
|
|
|
|
|
|
php:
|
|
|
|
- 5.5
|
|
|
|
- 5.6
|
|
|
|
- 7.0
|
|
|
|
- 7.1
|
|
|
|
- 7.2
|
|
|
|
- 7.3
|
|
|
|
- nightly
|
|
|
|
|
|
|
|
matrix:
|
2015-03-08 20:13:10 +03:00
|
|
|
fast_finish: true
|
|
|
|
allow_failures:
|
2016-10-13 23:17:03 +03:00
|
|
|
- php: nightly
|
2018-12-05 12:19:07 +03:00
|
|
|
- php: 7.3
|
2016-09-05 23:04:46 +03:00
|
|
|
|
|
|
|
install:
|
2018-12-05 11:19:00 +03:00
|
|
|
# remove everything to prevent composer trying to resolve these, see: https://github.com/composer/composer/issues/6011
|
|
|
|
- composer remove friendsofphp/php-cs-fixer --dev --no-update --no-interaction
|
2017-11-11 06:02:11 +03:00
|
|
|
- composer install --prefer-dist --no-interaction --no-progress
|
2016-10-09 15:17:03 +03:00
|
|
|
|
2018-12-05 11:19:00 +03:00
|
|
|
script: composer test-units
|
2018-12-05 10:13:55 +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:
|
|
|
|
- stage: Code Style and Static Analysis
|
|
|
|
php: 7.2
|
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;")" ]'
|
|
|
|
- composer test-formatting
|
|
|
|
|
|
|
|
- stage: Test CommonMark (weak)
|
|
|
|
php: 7.2
|
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:
|
|
|
|
- composer test-commonmark-weak || true
|
|
|
|
allow_failures:
|
|
|
|
- php: 7.2
|