-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from DivineOmega/travis
Travis CI integration
- Loading branch information
Showing
7 changed files
with
658 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
/** | ||
* PhpStorm Meta file, to provide autocomplete information for PhpStorm | ||
* Generated on 2018-07-23 20:53:39. | ||
* Generated on 2018-09-05 10:42:35. | ||
* | ||
* @author Barry vd. Heuvel <[email protected]> | ||
* @see https://github.com/barryvdh/laravel-ide-helper | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
language: php | ||
|
||
sudo: required | ||
|
||
php: | ||
- 7.2 | ||
|
||
dist: trusty | ||
|
||
services: | ||
- mysql | ||
|
||
addons: | ||
apt: | ||
sources: | ||
- mysql-5.7-trusty | ||
packages: | ||
- mysql-server | ||
- mysql-client | ||
|
||
cache: | ||
directories: | ||
- node_modules | ||
- vendor | ||
- $HOME/.composer/cache | ||
|
||
before_script: | ||
# Install Imagick | ||
- pear config-set preferred_state beta | ||
- pecl channel-update pecl.php.net | ||
- yes | pecl install imagick | ||
# Setup headless web browser for Laravel Dusk tests | ||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start | ||
- ./vendor/laravel/dusk/bin/chromedriver-linux & | ||
# Install Composer dependencies | ||
- composer install --no-interaction | ||
# Create database, migrate & seed | ||
- mysql -e 'CREATE DATABASE IF NOT EXISTS test_database;' | ||
- php artisan migrate:refresh --seed | ||
# Start web server | ||
- php artisan serve >/dev/null 2>&1 & | ||
|
||
script: | ||
# Run PHPUnit & Laravel Dusk tests | ||
- vendor/bin/phpunit --coverage-clover=coverage.xml | ||
- php artisan dusk | ||
|
||
env: | ||
global: | ||
- LANG=en_GB.UTF-8 | ||
- LC_ALL=en_GB.UTF-8 | ||
|
||
- APP_NAME=Laravel | ||
- APP_ENV=local | ||
- APP_KEY=base64:DcAioZro7e+VqYWHs/xvW5fzGGoiItIl38FZ2aiA3ew= | ||
- APP_DEBUG=true | ||
- APP_URL=http://127.0.0.1:8000 | ||
|
||
- LOG_CHANNEL=stack | ||
- DB_CONNECTION=mysql | ||
- DB_HOST=127.0.0.1 | ||
- DB_PORT=3306 | ||
- DB_DATABASE=test_database | ||
- DB_USERNAME=root | ||
- DB_PASSWORD= | ||
|
||
- BROADCAST_DRIVER=log | ||
- CACHE_DRIVER=file | ||
- SESSION_DRIVER=file | ||
- SESSION_LIFETIME=200 | ||
- QUEUE_DRIVER=sync | ||
|
||
- REDIS_HOST=127.0.0.1 | ||
- REDIS_PASSWORD=null | ||
- REDIS_PORT=6379 | ||
|
||
- MAIL_DRIVER=ses | ||
- MAIL_HOST=smtp.mailtrap.io | ||
- MAIL_PORT=2525 | ||
- MAIL_USERNAME=null | ||
- MAIL_PASSWORD=null | ||
- MAIL_ENCRYPTION=null | ||
|
||
- PUSHER_APP_ID= | ||
- PUSHER_APP_KEY= | ||
- PUSHER_APP_SECRET= | ||
- PUSHER_APP_CLUSTER=mt1 | ||
|
||
- MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" | ||
- MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.