mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 14:34:04 +00:00
Make database creation queueable (#17)
* SOLIDify database creation * Return the result of fclose in SQLiteDBCreator * Make database creation queueable * Add DatabaseCreationTest * Make comment more descriptive [ci skip] * Add composer script to copy .env.example to .env * Minor tweaks * Fix env section * Fix DB_PASSWORD for Travis
This commit is contained in:
parent
136862369d
commit
c53a05cff4
13 changed files with 186 additions and 24 deletions
10
.travis.yml
10
.travis.yml
|
|
@ -1,3 +1,6 @@
|
|||
env:
|
||||
- DB_USERNAME=root DB_PASSWORD="" DB_DATABASE=travis_tenancy CODECOV_TOKEN="24382d15-84e7-4a55-bea4-c4df96a24a9b"
|
||||
|
||||
language: php
|
||||
php:
|
||||
- '7.2'
|
||||
|
|
@ -8,6 +11,7 @@ branches:
|
|||
- master
|
||||
|
||||
services:
|
||||
- mysql
|
||||
- redis-server
|
||||
|
||||
before_install:
|
||||
|
|
@ -16,8 +20,10 @@ before_install:
|
|||
install:
|
||||
- travis_retry composer install --no-interaction
|
||||
|
||||
script: vendor/bin/phpunit --coverage-clover=coverage.xml
|
||||
before_script:
|
||||
- mysql -e 'CREATE DATABASE travis_tenancy;'
|
||||
|
||||
script: vendor/bin/phpunit -v --coverage-clover=coverage.xml
|
||||
|
||||
after_success:
|
||||
- export CODECOV_TOKEN="24382d15-84e7-4a55-bea4-c4df96a24a9b"
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
Loading…
Add table
Add a link
Reference in a new issue