6 Commits
1.1.0 ... 1.1.2

Author SHA1 Message Date
Ismo Vuorinen
0cb85af737 Merge branch 'release/1.1.2' 2017-09-15 19:24:49 +03:00
Ismo Vuorinen
37f35eeb26 CHANGELOG 2017-09-15 19:24:17 +03:00
Ismo Vuorinen
8fe5df77fb PHP5.6 composer install takes a long time... 2017-09-15 18:35:46 +03:00
Ismo Vuorinen
6140c7b999 Testing settings for travis-ci build config 2017-09-15 07:20:25 +03:00
Ismo Vuorinen
3d635a04b9 Merge branch 'release/1.1.1' 2017-08-27 19:48:36 +03:00
Ismo Vuorinen
4f51fd8c51 Typo fixes, composer.lock and removal of dead code. Ready for v1.1.1. 2017-08-27 19:48:06 +03:00
8 changed files with 35 additions and 47 deletions

2
.gitignore vendored
View File

@@ -1,2 +1,2 @@
composer.lock
vendor vendor
composer.lock

View File

@@ -1,30 +1,22 @@
language: php language: php
sudo: false
php: php:
- 5.6
- 7.0 - 7.0
- 7.1 - 7.1
- nightly
env: matrix:
global: allow_failures:
- setup=basic - php: 5.6
- coverage=no - php: nightly
fast_finish: true
cache: cache:
directories: directories:
- $HOME/.composer/cache/files - $HOME/.composer/cache/files
before_script: before_script:
- composer config discard-changes true - phpenv global "$TRAVIS_PHP_VERSION"
- if [[ $setup = 'basic' ]]; then travis_retry composer install --prefer-dist --no-interaction; fi - composer config extra.platform.php $TRAVIS_PHP_VERSION
- if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable; fi install:
- if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-lowest --prefer-stable; fi - flags="--ansi --prefer-dist --no-interaction --optimize-autoloader --no-suggest --no-progress"
- if [[ $setup = 'coveralls' ]]; then travis_retry composer require "satooshi/php-coveralls=~0.7" --prefer-dist --no-interaction --dev; fi - travis_wait 30 composer install $flags
script: script:
- if [[ $coverage = 'yes' ]]; then ./vendor/bin/phpunit -c phpunit.xml --coverage-clover build/logs/clover.xml; fi - ./vendor/bin/phpunit -c phpunit.xml
- if [[ $coverage = 'no' ]]; then ./vendor/bin/phpunit -c phpunit.xml; fi
after_script:
- if [[ $setup = 'coveralls' ]]; then php vendor/bin/coveralls -v; fi

View File

@@ -4,7 +4,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/) The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/). and this project adheres to [Semantic Versioning](http://semver.org/).
## [1.1.0](https://github.com/superhelio/commands/tree/2.0.0) (2017-08-27) ## [1.1.2](https://github.com/superhelio/commands/tree/1.1.2) (2017-09-15)
- Removed composer.lock, only to enable correct CI builds
- Reworked travis-ci.org configuration, builds should now go green
## [1.1.1](https://github.com/superhelio/commands/tree/1.1.1) (2017-08-27)
- Typo fixes
- Removal of dead/unnecessary code
- Added composer.lock for faster builds
## [1.1.0](https://github.com/superhelio/commands/tree/1.1.0) (2017-08-27)
- New command: `superhelio:gozer` with tests - New command: `superhelio:gozer` with tests
## [1.0.0](https://github.com/superhelio/commands/tree/1.0.0) (2017-02-08) ## [1.0.0](https://github.com/superhelio/commands/tree/1.0.0) (2017-02-08)

View File

@@ -34,7 +34,7 @@ public function register()
## Usage ## Usage
- *superhelio:gozer* - *superhelio:gozer*
- Force delete database tables that has your table prefix - Force delete database tables that have your table prefix
- `php artisan superhelio:gozer` - `php artisan superhelio:gozer`
- *superhelio:reload* - *superhelio:reload*
- Reset database, migrate and seed - Reset database, migrate and seed

View File

@@ -1,6 +1,6 @@
{ {
"name": "superhelio/commands", "name": "superhelio/commands",
"description": "Laravel Commands", "description": "This is a collection of Laravel Artisan commands created to help everyone in their development work.",
"keywords": [ "keywords": [
"laravel", "laravel",
"superhelio", "superhelio",
@@ -21,7 +21,7 @@
"illuminate/support": "~5.2" "illuminate/support": "~5.2"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit" : "4.*", "phpunit/phpunit" : "~5.7",
"orchestra/testbench": "~3.0", "orchestra/testbench": "~3.0",
"doctrine/dbal": "~2.3" "doctrine/dbal": "~2.3"
}, },

View File

@@ -20,21 +20,13 @@ class Gozer extends Command
* *
* @var string * @var string
*/ */
protected $description = 'Force delete database tables that has your table prefix'; protected $description = 'Force delete database tables that have your table prefix';
/** /**
* @var string Database table prefix * @var string Database table prefix
*/ */
private $dbPrefix = ''; private $dbPrefix = '';
/**
* Create a new command instance.
*/
public function __construct()
{
parent::__construct();
}
/** /**
* Execute the console command. * Execute the console command.
* *
@@ -51,12 +43,12 @@ class Gozer extends Command
$this->info(' $this->info('
________ ________
/ _____/ ____________ ___________ / _____/ ____________ ___________
/ \ ___ / _ \___ // __ \_ __ \ / \ ___ / _ \___ // __ \_ __ \
\ \_\ ( <_> ) /\ ___/| | \/ \ \_\ ( <_> ) /\ ___/| | \/
\______ /\____/_____ \\___ >__| \______ /\____/_____ \\___ >__|
\/ \/ \/ \/ \/ \/
'); ');
@@ -88,6 +80,7 @@ class Gozer extends Command
*/ */
if ($tables->count() < 1) { if ($tables->count() < 1) {
$this->info('There are no tables, only Zuul.'); $this->info('There are no tables, only Zuul.');
return true; return true;
} }

View File

@@ -20,14 +20,6 @@ class Reload extends Command
*/ */
protected $description = 'Rollback migrations, migrate and run seeds'; protected $description = 'Rollback migrations, migrate and run seeds';
/**
* Create a new command instance.
*/
public function __construct()
{
parent::__construct();
}
/** /**
* Execute the console command. * Execute the console command.
* *
@@ -53,6 +45,8 @@ class Reload extends Command
'--verbose' => 3 '--verbose' => 3
] ]
); );
return true;
} }
} }
} }

View File

@@ -5,6 +5,6 @@ class ServiceProvider extends \Illuminate\Support\ServiceProvider
{ {
public function boot() public function boot()
{ {
$this->loadMigrationsFrom(realpath(__DIR__ . '/../migrations')); $this->loadMigrationsFrom(dirname(__DIR__) . '/migrations');
} }
} }