]> git.localhorst.tv Git - alttp.git/blobdiff - ci.sh
add CI script
[alttp.git] / ci.sh
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/**'