mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Run PHPUnit
This commit is contained in:
10
.ci/phpunit.sh
Executable file
10
.ci/phpunit.sh
Executable file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# enable test .env file.
|
||||||
|
cp .ci/.env.ci ../.env
|
||||||
|
|
||||||
|
# download test database
|
||||||
|
wget --quiet https://raw.githubusercontent.com/firefly-iii/test-data/main/test_db.sqlite -o storage/database/test_db.sqlite
|
||||||
|
|
||||||
|
# run phpunit
|
||||||
|
./vendor/bin/phpunit
|
@@ -16,6 +16,6 @@ before_script:
|
|||||||
- phpenv config-rm xdebug.ini || return 0
|
- phpenv config-rm xdebug.ini || return 0
|
||||||
- composer global require hirak/prestissimo --no-plugins --no-scripts
|
- composer global require hirak/prestissimo --no-plugins --no-scripts
|
||||||
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- "./.ci/phpstan.sh"
|
- "./.ci/phpstan.sh"
|
||||||
|
- "./.ci/phpunit.sh"
|
Reference in New Issue
Block a user