diff --git a/.env.travis b/.env.travis new file mode 100644 index 00000000..f9bcc925 --- /dev/null +++ b/.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 diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..f82cd55d --- /dev/null +++ b/.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