mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 01:02:24 +01:00
Fix tests
This commit is contained in:
parent
982221b096
commit
4cd0c8efd6
@ -3,3 +3,7 @@ preset: psr2
|
||||
enabled:
|
||||
- short_array_syntax
|
||||
- no_whitespace_in_blank_line
|
||||
|
||||
finder:
|
||||
exclude:
|
||||
- "helpers.php"
|
||||
|
@ -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
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user