-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolves: TGT-1613 Releases: master, 9.1, 9.0, 8.7
- Loading branch information
Showing
4 changed files
with
47 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
language: php | ||
php: | ||
- 7.0 | ||
- 7.1 | ||
- 7.2 | ||
|
||
env: | ||
- UNIT_TESTS=yes | ||
- PHP_LINT=yes | ||
- PHP_CS_FIXER=yes | ||
|
||
sudo: false | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- parallel | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
|
||
before_script: | ||
- mkdir -p logs | ||
- rm -rf .build/ | ||
- composer install --no-interaction --no-progress | ||
|
||
script: | ||
- > | ||
if [[ "$PHP_LINT" == "yes" ]]; then | ||
echo; | ||
echo "PHP lint"; | ||
find . -name \*.php ! -path "./.build/*" | parallel --gnu php -d display_errors=stderr -l {} > /dev/null \; | ||
fi | ||
- > | ||
if [[ "$PHP_CS_FIXER" == "yes" ]]; then | ||
echo; | ||
echo "PHP CS Fixer"; | ||
./.build/bin/php-cs-fixer fix --config Build/.php_cs.dist --format=junit > logs/php-cs-fixer.xml | ||
fi | ||
- > | ||
if [[ "$UNIT_TESTS" == "yes" ]]; then | ||
echo; | ||
echo "Unit tests"; | ||
.build/vendor/phpunit/phpunit/phpunit -c Build/UnitTests.xml --log-junit logs/phpunit.xml --coverage-clover logs/coverage.xml --coverage-html logs/coverage/ | ||
fi |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.