travis ci setup (#1)

ci setup
This commit is contained in:
Milos Stojanovic
2019-06-14 09:26:48 +02:00
committed by GitHub
parent 5eab125d17
commit 044df2559c
8 changed files with 72 additions and 2756 deletions

14
.travis.yml Normal file
View File

@@ -0,0 +1,14 @@
language: php
php:
- 7.1.3
- 7.2
- 7.3
before_script:
- cp configuration_sample.php configuration.php
- composer self-update
- composer install --no-interaction
script:
- vendor/bin/phpunit

View File

@@ -31,9 +31,8 @@
}
},
"require-dev": {
"phpunit/phpunit": "^8.0",
"phpunit/phpunit": "^7.5",
"symfony/var-dumper": "^4.2",
"nunomaduro/phpinsights": "^1.0",
"league/flysystem-memory": "^1.0"
}
}

2798
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -43,7 +43,7 @@ return [
},
'database' => function () {
$handler = new \Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler(
'mysql://root:milos@localhost:3360/filegator'
'mysql://root:password@localhost:3360/filegator'
);
return new \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage([], $handler);
@@ -134,7 +134,7 @@ return [
// 'driver' => 'mysqli',
// 'host' => 'localhost',
// 'username' => 'root',
// 'password' => 'milos',
// 'password' => 'password',
// 'database' => 'filegator',
//],
],

View File

@@ -7,8 +7,7 @@
"build": "vue-cli-service build --no-clean",
"lint": "vue-cli-service lint",
"test:e2e": "vue-cli-service test:e2e",
"test:unit": "vue-cli-service test:unit",
"insight": "./vendor/bin/phpinsights -v -n > phpinsights.txt"
"test:unit": "vue-cli-service test:unit"
},
"devDependencies": {
"@fortawesome/fontawesome-free": "^5.9.0",

View File

@@ -61,7 +61,7 @@ class AppTest extends TestCase
// another request with previous session
$request2 = Request::create(
'?r=/',
'GET',
'GET'
);
$request2->setSession($prev_session);

View File

@@ -109,7 +109,7 @@ class AuthTest extends TestCase
{
$request = Request::create(
'?r=/notfound',
'GET',
'GET'
);
$app = $this->bootFreshApp(null, $request);

View File

@@ -100,7 +100,7 @@ class RequestTest extends TestCase
$request = Request::create(
'/test?priority=10&something=else',
'POST',
['param' => 'param1', 'priority' => 5],
['param' => 'param1', 'priority' => 5]
);
$this->assertEquals($request->all(), [