Skip to content

Commit

Permalink
Adding travis config files
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumebriday committed Apr 11, 2017
1 parent f0be8ab commit cacdc1f
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .env.travis
@@ -0,0 +1,9 @@
APP_ENV=testing
APP_KEY=base64:bEyMc56PjVmTTKmDBEhth4lTL+PDVVmxRs+Gm5Z6f9Q=

DB_HOST=127.0.0.1
DB_DATABASE=homestead
DB_USERNAME=travis

CACHE_DRIVER=file
SESSION_DRIVER=file
24 changes: 24 additions & 0 deletions .travis.yml
@@ -0,0 +1,24 @@
language: php

php:
- 7.0
- 7.1

services:
- mysql

cache:
directories:
- $HOME/.composer/cache

before_script:
- composer install --no-progress --no-interaction --prefer-dist --no-suggest
- mysql -e 'CREATE DATABASE homestead;'
- cp .env.travis .env.testing

script:
- vendor/bin/php-cs-fixer fix --config=.php_cs --verbose --dry-run --diff
- vendor/bin/phpunit

notifications:
email: false

0 comments on commit cacdc1f

Please sign in to comment.