mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-27 02:45:52 +02:00
travis: parellize for better peformance
This commit is contained in:
parent
fcbd0d4d6b
commit
6d3b5d47fc
14
.travis.yml
14
.travis.yml
@ -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
|
||||
|
25
phpunit.xml
25
phpunit.xml
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user