Skip to content

Commit

Permalink
Merge pull request #2 from DivineOmega/travis
Browse files Browse the repository at this point in the history
Travis CI integration
  • Loading branch information
AlexCatch authored Sep 6, 2018
2 parents 5b0db9c + b415393 commit 20e93e0
Show file tree
Hide file tree
Showing 7 changed files with 658 additions and 149 deletions.
2 changes: 1 addition & 1 deletion .phpstorm.meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
91 changes: 91 additions & 0 deletions .travis.yml
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}"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The table below illustrates the planned features and the currently implemented f
| [JWT Auth](https://github.com/tymondesigns/jwt-auth) || JWT API authorization |
| [Jest](https://github.com/facebook/jest) || JS testing framework |
| [Enzyme](https://github.com/airbnb/enzyme) || Utilities for testing React |
| [Travis](https://travis-ci.com/) | | Continuous integration |
| [Travis](https://travis-ci.com/) | | Continuous integration |
| [Dusk](https://laravel.com/docs/5.6/dusk) || Browser testing for Laravel (blade) |
| [Laravel Debug Bar](https://github.com/barryvdh/laravel-debugbar) || Help debugger |

Expand All @@ -22,4 +22,4 @@ The table below illustrates the planned features and the currently implemented f
- Be careful when using Jest & Dusk, they should not be used in tandem, use Jest & Enzyme for React rendered apps & Dusk for Blade rendered apps.
- When using Ziggy, ensure you add ```@routes``` before you include your application's bundle.
- JWTAuth is using the latest release candidate & not ```0.5.*```. Therefore make sure you use this link when referring to the docs. http://jwt-auth.readthedocs.io/en/develop/
- Travis needs some modifications based on your setup, use it simply as a guideline and customise to your needs.
- Travis (`.travis.yml`) may need some modifications based on your setup.
36 changes: 31 additions & 5 deletions _ide_helper.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* A helper file for Laravel 5, to provide autocomplete information to your IDE
* Generated for Laravel 5.6.28 on 2018-07-23 20:53:38.
* Generated for Laravel 5.6.33 on 2018-09-05 10:42:35.
*
* This file should not be included in your code, only analyzed by your IDE!
*
Expand Down Expand Up @@ -4914,6 +4914,18 @@ public static function deleteDirectory($directory, $preserve = false)
return \Illuminate\Filesystem\Filesystem::deleteDirectory($directory, $preserve);
}

/**
* Remove all of the directories within a given directory.
*
* @param string $directory
* @return bool
* @static
*/
public static function deleteDirectories($directory)
{
return \Illuminate\Filesystem\Filesystem::deleteDirectories($directory);
}

/**
* Empty the specified directory of all files and folders.
*
Expand Down Expand Up @@ -9241,6 +9253,20 @@ public static function getLastGroupPrefix()
return \Illuminate\Routing\Router::getLastGroupPrefix();
}

/**
* Add a route to the underlying route collection.
*
* @param array|string $methods
* @param string $uri
* @param \Closure|array|string|null $action
* @return \Illuminate\Routing\Route
* @static
*/
public static function addRoute($methods, $uri, $action)
{
return \Illuminate\Routing\Router::addRoute($methods, $uri, $action);
}

/**
* Return the response returned by the given route.
*
Expand Down Expand Up @@ -13760,7 +13786,7 @@ public static function findMany($ids, $columns = array())
*
* @param mixed $id
* @param array $columns
* @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection
* @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static|static[]
* @throws \Illuminate\Database\Eloquent\ModelNotFoundException
* @static
*/
Expand Down Expand Up @@ -13911,7 +13937,7 @@ public static function cursor()
*
* @param int $count
* @param callable $callback
* @param string $column
* @param string|null $column
* @param string|null $alias
* @return bool
* @static
Expand Down Expand Up @@ -14184,7 +14210,7 @@ public static function first($columns = array())
* @param mixed $value
* @param callable $callback
* @param callable $default
* @return mixed
* @return mixed|$this
* @static
*/
public static function when($value, $callback, $default = null)
Expand All @@ -14210,7 +14236,7 @@ public static function tap($callback)
* @param mixed $value
* @param callable $callback
* @param callable $default
* @return mixed
* @return mixed|$this
* @static
*/
public static function unless($value, $callback, $default = null)
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"type": "project",
"require": {
"php": "^7.1.3",
"aws/aws-sdk-php": "^3.67",
"fideloper/proxy": "^4.0",
"laravel/framework": "5.6.*",
"laravel/tinker": "^1.0",
Expand Down
Loading

0 comments on commit 20e93e0

Please sign in to comment.