1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00
parsedown/.travis.yml

53 lines
1.2 KiB
YAML
Raw Normal View History

2013-07-23 00:59:51 +04:00
language: php
2017-11-14 20:19:24 +03:00
dist: trusty
sudo: false
2018-12-05 10:13:55 +03:00
stages:
2018-12-05 12:24:47 +03:00
- Code Format and Static Analysis
2018-12-05 10:13:55 +03:00
- test
- Test CommonMark (weak)
php:
- 5.5
- 5.6
2018-12-05 10:13:55 +03:00
- 7.0
- 7.1
- 7.2
- 7.3
- nightly
matrix:
fast_finish: true
allow_failures:
2016-10-13 23:17:03 +03:00
- php: nightly
- env: ALLOW_FAILURE
install:
2018-12-05 12:24:47 +03: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
- composer remove vimeo/psalm friendsofphp/php-cs-fixer --dev --no-update --no-interaction
- composer install --prefer-dist --no-interaction --no-progress
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:
2018-12-05 12:24:47 +03:00
- stage: Code Format and Static Analysis
php: 7.3
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-static
2018-12-05 10:13:55 +03:00
- composer test-formatting
- stage: Test CommonMark (weak)
php: 7.3
env: ALLOW_FAILURE
install: composer install --prefer-dist --no-interaction --no-progress
2018-12-05 10:13:55 +03:00
script:
- composer test-commonmark-weak