]> git.localhorst.tv Git - alttp.git/commitdiff
add CI script
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 23 Feb 2024 13:50:06 +0000 (14:50 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 23 Feb 2024 13:50:06 +0000 (14:50 +0100)
ci.sh [new file with mode: 0755]

diff --git a/ci.sh b/ci.sh
new file mode 100755 (executable)
index 0000000..602f7b5
--- /dev/null
+++ b/ci.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+composer -nq install
+php artisan key:generate
+php artisan migrate:fresh
+npm clean-install
+npm run production
+nice php artisan test --without-tty --coverage-html /var/www/coverage/alttp/php
+nice npm run test -- --coverage --coverageDirectory /var/www/coverage/alttp/js --coverageReporters html --collectCoverageFrom 'resources/js/**'