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
|
2019-02-02 22:09:56 +01:00
|
|
|
- Units
|
2018-12-05 08:13:55 +01:00
|
|
|
- Test CommonMark (weak)
|
|
|
|
|
2018-12-05 09:03:43 +01:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache
|
|
|
|
|
2018-12-05 08:13:55 +01:00
|
|
|
jobs:
|
2020-05-04 23:30:27 +02:00
|
|
|
fast_finish: true
|
|
|
|
allow_failures:
|
|
|
|
- env: ALLOW_FAILURE
|
|
|
|
|
2018-12-05 08:13:55 +01:00
|
|
|
include:
|
2018-12-05 10:24:47 +01:00
|
|
|
- stage: Code Format and Static Analysis
|
2020-01-19 19:14:37 +01:00
|
|
|
php: 7.4
|
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;")" ]'
|
2020-01-26 14:09:19 +01:00
|
|
|
- composer test-static -- --shepherd
|
2018-12-05 08:13:55 +01:00
|
|
|
- composer test-formatting
|
2019-01-21 19:21:34 +01:00
|
|
|
- composer test-dead-code
|
2018-12-05 08:13:55 +01:00
|
|
|
|
2019-02-02 22:09:56 +01:00
|
|
|
|
2019-02-03 00:18:08 +01:00
|
|
|
- &MUTATION_AND_UNIT_TEST
|
2019-07-25 00:18:29 +02:00
|
|
|
stage: Units
|
2019-02-02 22:09:56 +01:00
|
|
|
php: 7.1
|
2019-02-03 00:18:08 +01:00
|
|
|
install:
|
2020-05-04 23:41:21 +02:00
|
|
|
- composer update --prefer-dist --no-interaction --no-progress
|
2019-02-03 00:18:08 +01:00
|
|
|
script:
|
|
|
|
- composer test-units
|
2019-02-11 21:36:55 +01:00
|
|
|
- vendor/bin/infection --show-mutations --threads=4 --min-msi=90 --min-covered-msi=90
|
2019-09-10 00:37:31 +02:00
|
|
|
|
2019-02-03 00:18:08 +01:00
|
|
|
- <<: *MUTATION_AND_UNIT_TEST
|
2019-02-02 22:09:56 +01:00
|
|
|
php: 7.2
|
2019-02-03 00:18:08 +01:00
|
|
|
- <<: *MUTATION_AND_UNIT_TEST
|
2019-02-02 22:09:56 +01:00
|
|
|
php: 7.3
|
2019-09-10 00:37:31 +02:00
|
|
|
- <<: *MUTATION_AND_UNIT_TEST
|
2020-01-19 19:14:37 +01:00
|
|
|
php: 7.4
|
2019-09-10 00:37:31 +02:00
|
|
|
|
2019-07-25 19:07:08 +02:00
|
|
|
- <<: *MUTATION_AND_UNIT_TEST
|
2019-02-02 22:09:56 +01:00
|
|
|
php: nightly
|
|
|
|
env: ALLOW_FAILURE
|
2019-07-25 19:07:08 +02:00
|
|
|
script: composer test-units
|
2019-02-02 22:09:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
- &COMMONMARK_TEST
|
|
|
|
stage: CommonMark
|
2019-01-28 21:41:56 +01:00
|
|
|
name: Weak
|
2020-01-19 19:14:37 +01:00
|
|
|
php: 7.4
|
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
|
2019-01-28 21:41:56 +01:00
|
|
|
|
2019-02-02 22:09:56 +01:00
|
|
|
- <<: *COMMONMARK_TEST
|
2019-01-28 21:41:56 +01:00
|
|
|
name: Strict
|
|
|
|
script:
|
|
|
|
- composer test-commonmark
|