Fix tests

This commit is contained in:
Anton Medvedev 2017-03-16 20:42:40 +07:00
parent 982221b096
commit 4cd0c8efd6
3 changed files with 10 additions and 4 deletions

View File

@ -3,3 +3,7 @@ preset: psr2
enabled:
- short_array_syntax
- no_whitespace_in_blank_line
finder:
exclude:
- "helpers.php"

View File

@ -1,7 +1,5 @@
language: php
sudo: required
php:
- 7.0
- 7.1
@ -16,8 +14,6 @@ env:
- COMPOSER_FLAGS="--prefer-stable"
install:
- eval `ssh-agent -s`
- test/travis/setup-secure-shell.sh
- composer self-update
- composer update --no-interaction --prefer-source $COMPOSER_FLAGS

View File

@ -51,6 +51,12 @@ abstract class TestCase extends BaseTestCase
self::cleanUp();
mkdir(self::$deployPath);
self::$deployPath = realpath(self::$deployPath);
// Init repository
$repository = __DIR__ . '/../fixture/repository';
\exec("cd $repository && git init");
\exec("cd $repository && git add .");
\exec("cd $repository && git commit -m 'init commit'");
}
public static function tearDownAfterClass()