Run PHPUnit

This commit is contained in:
James Cole 2020-08-01 05:44:26 +02:00
parent 57cb325639
commit a502594545
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D
2 changed files with 11 additions and 1 deletions

10
.ci/phpunit.sh Executable file
View 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

View File

@ -16,6 +16,6 @@ before_script:
- phpenv config-rm xdebug.ini || return 0
- composer global require hirak/prestissimo --no-plugins --no-scripts
script:
- "./.ci/phpstan.sh"
- "./.ci/phpunit.sh"