more fixes for travis

This commit is contained in:
Nabeel Shahzad 2017-07-13 14:29:46 -05:00
parent dd6a45e567
commit 5527fb3d64
7 changed files with 55 additions and 24 deletions

View File

@ -14,7 +14,7 @@ before_install:
before_script:
- cp .env.travis .env
- composer self-update
- make build
script:
- make tests
- php artisan database:create --reset
- vendor/bin/phpunit --debug --verbose --testdox tests

View File

@ -47,10 +47,8 @@ tests: test
.PHONY: test
test:
@echo "" > storage/logs/laravel.log
@chmod 0777 storage/logs/*
@vendor/bin/phpunit --testdox tests
@cat storage/logs/laravel.log
#@php artisan database:create --reset > /dev/null
vendor/bin/phpunit --debug --verbose --testdox tests
.PHONY: schema
schema:

View File

@ -32,7 +32,8 @@
"phpunit/phpunit": "~5.7",
"symfony/css-selector": "3.1.*",
"symfony/dom-crawler": "3.1.*",
"laravel/homestead": "^5.4"
"laravel/homestead": "^5.4",
"scriptfusion/phpunit-immediate-exception-printer": "^1"
},
"autoload": {
"classmap": [

45
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"content-hash": "43f3e5ba26994dd305c74c84a42177dd",
"content-hash": "c9fe9a5a21d2f275a62bb5adda58f544",
"packages": [
{
"name": "anlutro/l4-settings",
@ -838,16 +838,16 @@
},
{
"name": "ellipsesynergie/api-response",
"version": "0.14.0",
"version": "0.14.2",
"source": {
"type": "git",
"url": "https://github.com/ellipsesynergie/api-response.git",
"reference": "79f7a8b63f6fc18ad7be9136d42331e2bc2840cf"
"reference": "81b565838f2790c6d857ab5134fa005d493202a1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/ellipsesynergie/api-response/zipball/79f7a8b63f6fc18ad7be9136d42331e2bc2840cf",
"reference": "79f7a8b63f6fc18ad7be9136d42331e2bc2840cf",
"url": "https://api.github.com/repos/ellipsesynergie/api-response/zipball/81b565838f2790c6d857ab5134fa005d493202a1",
"reference": "81b565838f2790c6d857ab5134fa005d493202a1",
"shasum": ""
},
"require": {
@ -895,7 +895,7 @@
"fractal",
"json"
],
"time": "2017-07-05T12:23:19+00:00"
"time": "2017-07-06T13:01:20+00:00"
},
{
"name": "erusev/parsedown",
@ -5434,6 +5434,39 @@
],
"time": "2017-06-30T09:13:00+00:00"
},
{
"name": "scriptfusion/phpunit-immediate-exception-printer",
"version": "1.1.0",
"source": {
"type": "git",
"url": "https://github.com/ScriptFUSION/PHPUnit-Immediate-Exception-Printer.git",
"reference": "5bd117e530d87533b036ce227493ae1d92018599"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/ScriptFUSION/PHPUnit-Immediate-Exception-Printer/zipball/5bd117e530d87533b036ce227493ae1d92018599",
"reference": "5bd117e530d87533b036ce227493ae1d92018599",
"shasum": ""
},
"require": {
"phpunit/phpunit": "^5.5|^6"
},
"type": "library",
"autoload": {
"psr-4": {
"ScriptFUSION\\PHPUnitImmediateExceptionPrinter\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"authors": [
{
"name": "Bilge",
"email": "bilge@scriptfusion.com"
}
],
"description": "Immediately prints exception and assertion failures during testing.",
"time": "2017-03-11T20:54:55+00:00"
},
{
"name": "sebastian/code-unit-reverse-lookup",
"version": "1.0.1",

View File

@ -1,13 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="bootstrap/autoload.php"
colors="true" verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
<phpunit bootstrap="bootstrap/autoload.php"
printerClass="ScriptFUSION\PHPUnitImmediateExceptionPrinter\ImmediateExceptionPrinter"
colors="true"
processIsolation="false"
stopOnFailure="false">
stopOnFailure="false"
convertErrorsToExceptions="false"
convertNoticesToExceptions="false"
convertWarningsToExceptions="false">
<testsuites>
<testsuite name="Application Test Suite">
<directory suffix="Test.php">./tests</directory>

View File

@ -56,11 +56,11 @@ class PIREPTest extends TestCase
}
/**
* @covers \App\Services\PilotService
* @covers \App\Services\PIREPService
* @outputBuffering disabled
*/
public function testAddPirep()
{
print_r('hi');
$pirep = new Pirep($this->SAMPLE_PIREP);
$pirep->save();

View File

@ -20,7 +20,7 @@ abstract class TestCase extends Illuminate\Foundation\Testing\TestCase
}
protected function reset_db() {
exec('make -f '.__DIR__.'/../Makefile unittest-db');
// exec('make -f '.__DIR__.'/../Makefile unittest-db');
}
public function setUp() {