Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

remove "ant" on .travis.yml, use "parallel" instead #91

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ before_script:

script:
- ls -d module/* | parallel --gnu --keep-order 'echo "Running {} CS checks"; ./vendor/bin/php-cs-fixer fix {} -v --dry-run --config-file=.php_cs;' || exit 1
- ant
- ls -d module/*/test | parallel --gnu --keep-order 'echo "Running {} tests"; phpunit -c {}/phpunit.xml;' || exit 1

after_script:
- php phpcov.phar merge --clover build/logs/clover.xml build/coverage/
Expand Down
34 changes: 0 additions & 34 deletions build.xml

This file was deleted.

1 change: 1 addition & 0 deletions module/Application/test/phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
</filter>
<logging>
<log type="coverage-html" target="./../../../data/test-html-report/" charset="UTF-8" yui="true" />
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coverage-html in one file in multi module really make non-accurate result, I will make it in individual directory. so result in folder data/test-html-report/ will be per-module like data/test-html-report/application/ .

<log type="coverage-php" target="./../../../build/coverage/coverage-application.cov"/>
</logging>
</phpunit>
4 changes: 4 additions & 0 deletions module/LearnZF2Ajax/test/phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@
<directory suffix=".php">./../../../vendor/</directory>
</blacklist>
</filter>
<logging>
<log type="coverage-html" target="./../../../data/test-html-report/" charset="UTF-8" yui="true" />
<log type="coverage-php" target="./../../../build/coverage/coverage-learnzf2ajax.cov"/>
</logging>
</phpunit>
4 changes: 4 additions & 0 deletions module/LearnZF2Barcode/test/phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@
<directory suffix=".php">./../../../vendor/</directory>
</blacklist>
</filter>
<logging>
<log type="coverage-html" target="./../../../data/test-html-report/" charset="UTF-8" yui="true" />
<log type="coverage-php" target="./../../../build/coverage/coverage-learnzf2barcode.cov"/>
</logging>
</phpunit>
4 changes: 4 additions & 0 deletions module/LearnZF2FormUsage/test/phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@
<directory suffix=".php">./../../../vendor/</directory>
</blacklist>
</filter>
<logging>
<log type="coverage-html" target="./../../../data/test-html-report/" charset="UTF-8" yui="true" />
<log type="coverage-php" target="./../../../build/coverage/coverage-learnzf2formusage.cov"/>
</logging>
</phpunit>
4 changes: 4 additions & 0 deletions module/LearnZF2Pagination/test/phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@
<directory suffix=".php">./../../../vendor/</directory>
</blacklist>
</filter>
<logging>
<log type="coverage-html" target="./../../../data/test-html-report/" charset="UTF-8" yui="true" />
<log type="coverage-php" target="./../../../build/coverage/coverage-learnzf2pagination.cov"/>
</logging>
</phpunit>