added travis env file

This commit is contained in:
denisdulici
2018-10-01 13:22:55 +03:00
parent 1879025813
commit 2bd8072403
3 changed files with 34 additions and 2 deletions

View File

@@ -7,8 +7,12 @@ php:
- '7.2'
before_script:
- composer self-update
- cp .env.travis .env
- mysql -e 'CREATE DATABASE akaunting;'
- composer install --no-interaction
- php artisan migrate --force
- php artisan db:seed --class=Database\Seeds\TestCompany
- php artisan company:seed company 1
script:
- vendor/bin/phpunit