Skip to content

Commit

Permalink
use find
Browse files Browse the repository at this point in the history
  • Loading branch information
nanasess committed Nov 30, 2020
1 parent 6e21827 commit 09a0df0
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,21 +70,10 @@ install:
script: |
if [[ $ECCUBE_VERSION = '4.0.5' ]]
then
while read TESTCASE
find app/Plugin/${PLUGIN_CODE}/Tests -name "*Test.php" | while read TESTCASE
do
./vendor/bin/phpunit --include-path vendor/kiy0taka/eccube4-test-fixer/src --loader 'Eccube\PHPUnit\Loader\Eccube4CompatTestSuiteLoader' app/Plugin/${PLUGIN_CODE}/Tests/${TESTCASE}
done <<EOF
Web/Admin/OAuth2Bundle/AuthorizationControllerTest.php
Web/Admin/LoginControllerTest.php
Web/Admin/OAuthControllerTest.php
Web/ApiControllerTest.php
GraphQL/SchemaTest.php
GraphQL/Mutation/UpdateProductStockMutationTest.php
GraphQL/Mutation/UpdateShippedMutationTest.php
GraphQL/TypesTest.php
GraphQL/AllowListTest.php
Service/WebHookServiceTest.php
EOF
./vendor/bin/phpunit --include-path vendor/kiy0taka/eccube4-test-fixer/src --loader 'Eccube\PHPUnit\Loader\Eccube4CompatTestSuiteLoader' ${TESTCASE}
done
else
./vendor/bin/phpunit app/Plugin/${PLUGIN_CODE}/Tests
fi
Expand Down

0 comments on commit 09a0df0

Please sign in to comment.