Changeset View
Changeset View
Standalone View
Standalone View
docker/tests/init.sh
#!/bin/bash | #!/bin/bash | ||||
set -e | #set -e | ||||
cp -a /src/kolabsrc.orig /src/kolabsrc | sudo cp -a /src/kolabsrc.orig /src/kolabsrc | ||||
sudo chmod 777 -R /src/kolabsrc | |||||
cd /src/kolabsrc | cd /src/kolabsrc | ||||
rm -rf vendor/ composer.lock | sudo rm -rf vendor/ composer.lock | ||||
php -dmemory_limit=-1 $(command -v composer) install | php -dmemory_limit=-1 $(command -v composer) install | ||||
sudo rm -rf node_modules | |||||
mkdir node_modules | |||||
npm install | npm install | ||||
find bootstrap/cache/ -type f ! -name ".gitignore" -delete | find bootstrap/cache/ -type f ! -name ".gitignore" -delete | ||||
./artisan key:generate | ./artisan key:generate | ||||
./artisan clear-compiled | ./artisan clear-compiled | ||||
./artisan cache:clear | ./artisan cache:clear | ||||
./artisan horizon:install | ./artisan horizon:install | ||||
if [ ! -f storage/oauth-public.key -o ! -f storage/oauth-private.key ]; then | if [ ! -f storage/oauth-public.key -o ! -f storage/oauth-private.key ]; then | ||||
Show All 11 Lines | |||||
fi | fi | ||||
if [ ! -f 'resources/countries.php' ]; then | if [ ! -f 'resources/countries.php' ]; then | ||||
./artisan data:countries | ./artisan data:countries | ||||
fi | fi | ||||
npm run dev | npm run dev | ||||
# Tests\Feature\Controller\PaymentsMollieEuroTest | |||||
# /usr/bin/chromium-browser --no-sandbox --headless --disable-gpu --remote-debugging-port=9222 http://localhost & | # /usr/bin/chromium-browser --no-sandbox --headless --disable-gpu --remote-debugging-port=9222 http://localhost & | ||||
rm -rf database/database.sqlite | rm -rf database/database.sqlite | ||||
./artisan db:ping --wait | ./artisan db:ping --wait | ||||
php -dmemory_limit=512M ./artisan migrate:refresh --seed | php -dmemory_limit=512M ./artisan migrate:refresh --seed | ||||
./artisan data:import || : | ./artisan data:import || : | ||||
# nohup ./artisan horizon >/dev/null 2>&1 & | # nohup ./artisan horizon >/dev/null 2>&1 & | ||||
./artisan octane:start --host=$(grep OCTANE_HTTP_HOST .env | tail -n1 | sed "s/OCTANE_HTTP_HOST=//") >/dev/null 2>&1 & | ./artisan octane:start --host=$(grep OCTANE_HTTP_HOST .env | tail -n1 | sed "s/OCTANE_HTTP_HOST=//") >/dev/null 2>&1 & | ||||
# phpunit --verbose tests/Feature/Controller/PaymentsMollieEuroTest.php | |||||
php \ | php \ | ||||
-dmemory_limit=-1 \ | -dmemory_limit=-1 \ | ||||
vendor/bin/phpunit \ | vendor/bin/phpunit \ | ||||
--exclude-group skipci \ | |||||
--verbose \ | --verbose \ | ||||
--stop-on-defect \ | --stop-on-defect \ | ||||
--stop-on-error \ | --stop-on-error \ | ||||
--stop-on-failure \ | --stop-on-failure \ | ||||
--testsuite Unit | --testsuite Unit | ||||
php \ | php \ | ||||
-dmemory_limit=-1 \ | -dmemory_limit=-1 \ | ||||
vendor/bin/phpunit \ | vendor/bin/phpunit \ | ||||
--exclude-group skipci \ | |||||
--verbose \ | --verbose \ | ||||
--stop-on-defect \ | --stop-on-defect \ | ||||
--stop-on-error \ | --stop-on-error \ | ||||
--stop-on-failure \ | --stop-on-failure \ | ||||
--testsuite Functional | --testsuite Functional | ||||
php \ | php \ | ||||
-dmemory_limit=-1 \ | -dmemory_limit=-1 \ | ||||
vendor/bin/phpunit \ | vendor/bin/phpunit \ | ||||
--exclude-group skipci,coinbase,mollie,stripe,meet,dns \ | |||||
--verbose \ | --verbose \ | ||||
--stop-on-defect \ | --stop-on-defect \ | ||||
--stop-on-error \ | --stop-on-error \ | ||||
--stop-on-failure \ | --stop-on-failure \ | ||||
--testsuite Feature | --testsuite Feature |