Working on adding check-data to Travis

This commit is contained in:
Hillel Coren 2017-03-09 17:52:58 +02:00
parent 01ca660b6b
commit 94791a6c33
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ class CheckData extends Command
$errorEmail = env('ERROR_EMAIL'); $errorEmail = env('ERROR_EMAIL');
$this->info($this->log); $this->info($this->log);
throw new Exception('Check data failed!!');
if ($errorEmail) { if ($errorEmail) {
Mail::raw($this->log, function ($message) use ($errorEmail) { Mail::raw($this->log, function ($message) use ($errorEmail) {
$message->to($errorEmail) $message->to($errorEmail)

View File

@ -113,7 +113,7 @@ if (Utils::isReseller()) {
Route::post('/reseller_stats', 'AppController@stats'); Route::post('/reseller_stats', 'AppController@stats');
} }
if (Utils::isTravis() || true) { if (Utils::isTravis()) {
Route::get('/check_data', 'AppController@checkData'); Route::get('/check_data', 'AppController@checkData');
} }