Skip to content

Commit

Permalink
Merge pull request #5 from BekoDesign/travis
Browse files Browse the repository at this point in the history
Travis
  • Loading branch information
BertKooij authored Sep 7, 2017
2 parents fd6bdf3 + 2a4fe48 commit 41fbabd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
language: php
php:
- '7.1'
env:
- Test=test
before_script: composer install
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}
},
"require": {
"php": ">=7.0.0",
"php": ">=7.1.0",
"php-http/httplug": "^1.1",
"php-http/message": "^1.6",
"php-http/guzzle6-adapter": "^1.1",
Expand Down
6 changes: 4 additions & 2 deletions tests/BaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ public function __construct($name = null, array $data = [], $dataName = '')
{
parent::__construct($name, $data, $dataName);

$dotenv = new \Dotenv\Dotenv(__DIR__ . '/../');
$dotenv->load();
if(file_exists(__DIR__ . '/../.env')) {
$dotenv = new \Dotenv\Dotenv(__DIR__ . '/../');
$dotenv->load();
}
}


Expand Down

0 comments on commit 41fbabd

Please sign in to comment.