php-coder / mystamps

The site about post stamps where you can create a virtual collection
https://my-stamps.ru
GNU General Public License v2.0
20 stars 33 forks source link

Build scripts: run checks only when commit changes files with certain type #423

Closed php-coder closed 7 years ago

php-coder commented 8 years ago

Most of our checks are checking only files with a certain type. We'll have a benefit if we run them only when user modified files with certain types.

Examples:

php-coder commented 7 years ago

If only tests on Groovy were modified then only unit tests and CodeNarc checking should be performed.

php-coder commented 7 years ago
php-coder commented 7 years ago

I'm going to merge my implementation. Here are some details:

php-coder commented 7 years ago

unit and integration tests run always

Actually, we can run unit tests only when one of these were modified: pom.xml, java or groovy files.

Anyway, unit test will be run again during publishing code coverage (see #391).