Skip to content

Commit 9b6a3d9

Browse files
committed
Merge branch 'master' of https://github.com/edyan/neuralyzer
2 parents f0118af + 359bf77 commit 9b6a3d9

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

.circleci/config.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ jobs:
77
build:
88
docker:
99
# specify the version you desire here
10-
- image: circleci/php:7.1.5-browsers
11-
10+
- image: circleci/php:7.1-browsers
11+
1212
# Specify service dependencies here if necessary
1313
# CircleCI maintains a library of pre-built images
1414
# documented at https://circleci.com/docs/2.0/circleci-images/
15-
# - image: circleci/mysql:9.4
15+
- image: circleci/postgres:10-alpine-ram
1616

1717
working_directory: ~/repo
1818

@@ -32,6 +32,10 @@ jobs:
3232
paths:
3333
- ./vendor
3434
key: v1-dependencies-{{ checksum "composer.json" }}
35-
35+
3636
# run tests!
37-
- run: phpunit
37+
- run:
38+
name: Run tests
39+
command: vendor/bin/phpunit
40+
environment:
41+
DB_DRIVER: postgres

RoboFile.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,10 @@ private function createSQLServerDB()
221221

222222
private function startPHP(string $version, string $dbType)
223223
{
224+
if (!in_array($version, ['7.1', '7.2'])) {
225+
throw new \InvalidArgumentException('PHP Version must be 7.1 or 7.2');
226+
}
227+
224228
$dbUser = 'root';
225229
if ($dbType === 'postgres') {
226230
$dbUser = 'postgres';
@@ -289,7 +293,7 @@ private function gitVerifyBranchIsUpToDate()
289293
->silent(true)
290294
->exec('fetch --dry-run')
291295
->run();
292-
if ($modifiedFiles->getMessage() !== 'Is Up ToDate') {
296+
if (!empty($modifiedFiles->getMessage())) {
293297
throw new \RuntimeException('Your local repo is not up to date, run "git pull"');
294298
}
295299
}

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
stopOnFailure="true"
88
syntaxCheck="true">
99
<php>
10-
<env name='DB_DRIVER' value='pdo_mysql'/>
10+
<env name='DB_DRIVER' value='mysql'/>
1111
<env name='DB_USER' value='root'/>
1212
<env name='DB_PASSWORD' value=''/>
1313
<env name='DB_HOST' value='127.0.0.1'/>

0 commit comments

Comments
 (0)