travis: parellize for better peformance

This commit is contained in:
TomasVotruba 2018-01-04 15:22:59 +01:00
parent fcbd0d4d6b
commit 6d3b5d47fc
2 changed files with 28 additions and 11 deletions

View File

@ -3,11 +3,13 @@ language: php
matrix:
include:
- php: 7.1
env: CODING_STANDARD=true
- php: 7.1
env: PHPSTAN=true
env: STATIC_ANALYSIS=true
- php: 7.2
env: PHPUNIT_FLAGS="--coverage-clover coverage.xml"
env: PHPUNIT_FLAGS="--coverage-clover coverage.xml --testsuite=contrib-rectors"
- php: 7.2
env: PHPUNIT_FLAGS="--coverage-clover coverage.xml --testsuite=general-rectors"
- php: 7.2
env: PHPUNIT_FLAGS="--coverage-clover coverage.xml --testsuite=main"
install:
- composer install
@ -20,8 +22,8 @@ script:
- vendor/bin/phpunit $PHPUNIT_FLAGS
# disable xdebug
- phpenv config-rm xdebug.ini || return 0
- if [[ $CODING_STANDARD != "" ]]; then composer check-cs; fi
- if [[ $PHPSTAN != "" ]]; then composer phpstan; fi
- if [[ $STATIC_ANALYSIS != "" ]]; then composer check-cs; fi
- if [[ $STATIC_ANALYSIS != "" ]]; then composer phpstan; fi
after_script:
# upload coverage to Coveralls.io

View File

@ -3,11 +3,26 @@
colors="true"
verbose="true"
>
<!-- tests directories to run -->
<testsuite>
<directory>packages/*/tests</directory>
<directory>tests</directory>
</testsuite>
<testsuites>
<!-- only contrib open-source project Rectors -->
<testsuite name="contrib-rectors">
<directory>tests/Rector/Contrib</directory>
</testsuite>
<!-- only general configurable Rectors -->
<testsuite name="general-rectors">
<directory>tests/Rector/Dynamic</directory>
<directory>tests/Rector/MagicDisclosure</directory>
</testsuite>
<!-- and the rest -->
<testsuite name="main">
<directory>packages/*/tests</directory>
<directory>tests</directory>
<exclude>tests/Rector/Dynamic/</exclude>
<exclude>tests/Rector/MagicDisclosure/</exclude>
<exclude>tests/Rector/Contrib/</exclude>
</testsuite>
</testsuites>
<!-- source to check coverage for -->
<filter>
<whitelist addUncoveredFilesFromWhitelist="false">