Skip to content

Commit

Permalink
Add set -e to scripts and try to find the runtest binary
Browse files Browse the repository at this point in the history
  • Loading branch information
joernott committed Apr 24, 2024
1 parent eec67d6 commit e5a49d9
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/oxid-esales/scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ runscript: &runscript
"phpunit/phpunit": "^9.1.1"
}
}
custom_script: |
mkdir -p source/vendor/oxid-esales/oxideshop-ce/tests/Output
find . >source/vendor/oxid-esales/oxideshop-ce/tests/Output/files.txt
runslim:
<<: *runscript
Expand Down
1 change: 1 addition & 0 deletions tests/Scripts/Codeception.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -e
vendor/bin/codecept build \
-c tests/codeception.yml
vendor/bin/codecept run acceptanceSetup \
Expand Down
1 change: 1 addition & 0 deletions tests/Scripts/Deprecated.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -e
cp /var/www/vendor/oxid-esales/testing-library/test_config.yml.dist test_config.yml
# sed -e "s|shop_tests_path:.*|shop_tests_path: 'vendor/oxid-esales/tests'|" \
# -e "s|shop_path:.*|shop_path: 'vendor/oxid-esales/oxideshop-ce/source'|" \
Expand Down
1 change: 1 addition & 0 deletions tests/Scripts/Integration.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -e
vendor/bin/phpunit \
-c phpunit.xml \
--bootstrap tests/bootstrap.php \
Expand Down
1 change: 1 addition & 0 deletions tests/Scripts/PhpCsReport.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -e
vendor/bin/phpcs \
--standard=tests/phpcs.xml \
--report=json \
Expand Down
1 change: 1 addition & 0 deletions tests/Scripts/PhpMdReport.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -e
vendor/bin/phpmd \
source json tests/PhpMd/standard.xml \
--ignore-errors-on-exit \
Expand Down
1 change: 1 addition & 0 deletions tests/Scripts/PhpStanReport.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -e
vendor/bin/phpstan \
-ctests/PhpStan/phpstan.neon \
analyse source/ \
Expand Down
1 change: 1 addition & 0 deletions tests/Scripts/ShopSetup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -e
vendor/bin/codecept build \
-c tests/codeception.yml
SELENIUM_SERVER_HOST=selenium \
Expand Down
1 change: 1 addition & 0 deletions tests/Scripts/Unit.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -e
vendor/bin/phpunit \
-c phpunit.xml \
--bootstrap tests/bootstrap.php \
Expand Down

0 comments on commit e5a49d9

Please sign in to comment.