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: before_script:
- cp .env.travis .env - cp .env.travis .env
- composer self-update - composer self-update
- make build
script: 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 .PHONY: test
test: test:
@echo "" > storage/logs/laravel.log #@php artisan database:create --reset > /dev/null
@chmod 0777 storage/logs/* vendor/bin/phpunit --debug --verbose --testdox tests
@vendor/bin/phpunit --testdox tests
@cat storage/logs/laravel.log
.PHONY: schema .PHONY: schema
schema: schema:

View File

@ -32,7 +32,8 @@
"phpunit/phpunit": "~5.7", "phpunit/phpunit": "~5.7",
"symfony/css-selector": "3.1.*", "symfony/css-selector": "3.1.*",
"symfony/dom-crawler": "3.1.*", "symfony/dom-crawler": "3.1.*",
"laravel/homestead": "^5.4" "laravel/homestead": "^5.4",
"scriptfusion/phpunit-immediate-exception-printer": "^1"
}, },
"autoload": { "autoload": {
"classmap": [ "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", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "43f3e5ba26994dd305c74c84a42177dd", "content-hash": "c9fe9a5a21d2f275a62bb5adda58f544",
"packages": [ "packages": [
{ {
"name": "anlutro/l4-settings", "name": "anlutro/l4-settings",
@ -838,16 +838,16 @@
}, },
{ {
"name": "ellipsesynergie/api-response", "name": "ellipsesynergie/api-response",
"version": "0.14.0", "version": "0.14.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/ellipsesynergie/api-response.git", "url": "https://github.com/ellipsesynergie/api-response.git",
"reference": "79f7a8b63f6fc18ad7be9136d42331e2bc2840cf" "reference": "81b565838f2790c6d857ab5134fa005d493202a1"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/ellipsesynergie/api-response/zipball/79f7a8b63f6fc18ad7be9136d42331e2bc2840cf", "url": "https://api.github.com/repos/ellipsesynergie/api-response/zipball/81b565838f2790c6d857ab5134fa005d493202a1",
"reference": "79f7a8b63f6fc18ad7be9136d42331e2bc2840cf", "reference": "81b565838f2790c6d857ab5134fa005d493202a1",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -895,7 +895,7 @@
"fractal", "fractal",
"json" "json"
], ],
"time": "2017-07-05T12:23:19+00:00" "time": "2017-07-06T13:01:20+00:00"
}, },
{ {
"name": "erusev/parsedown", "name": "erusev/parsedown",
@ -5434,6 +5434,39 @@
], ],
"time": "2017-06-30T09:13:00+00:00" "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", "name": "sebastian/code-unit-reverse-lookup",
"version": "1.0.1", "version": "1.0.1",

View File

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

View File

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

View File

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