2053 Commits

Author SHA1 Message Date
Anton Medvedev
112601294c Fix shared dir with trailing slash 2020-10-09 01:14:16 +02:00
Anton Medvedev
d688b5e7d0
Fix failing test (#2195)
(╯°□°)╯︵ ┻━┻
2020-10-09 01:42:43 +03:00
Anton Medvedev
e85f08c428
Update bug_report.md 2020-10-09 01:25:48 +03:00
Anton Medvedev
e7b0c6793e
Update config.yml 2020-10-09 01:23:00 +03:00
Anton Medvedev
29a724e12a
Update config.yml 2020-10-09 01:21:50 +03:00
Anton Medvedev
6148a11033
Create config.yml 2020-10-09 01:20:14 +03:00
Anton Medvedev
74234d2348 Update docs 2020-10-09 00:15:36 +02:00
Anton Medvedev
54748566a9 Improve tests 2020-10-09 00:15:28 +02:00
Anton Medvedev
8367eea1dc Show git status after update 2020-10-08 09:53:25 +02:00
Anton Medvedev
951f964a87 Fix style 2020-10-08 02:28:33 +02:00
Matt Stein
b1a34ff1ef
Support custom rsync flags + document. (#2189)
* Support custom rsync flags.

* Update changelog.

* Document method.

Co-authored-by: Anton Medvedev <anton@medv.io>
2020-10-08 03:26:30 +03:00
Anton Medvedev
50d4203306 🔥 2020-10-08 02:24:25 +02:00
Anton Medvedev
cdc326ecab Release 7.0.0-rc.1 2020-10-08 02:21:24 +02:00
Hardy Johnson
68d9cbd4e1
Cachetool contrib recipe, add stat:clear command. (#2103)
Co-authored-by: Anton Medvedev <anton@medv.io>
2020-10-08 03:17:56 +03:00
Matt Stein
2098c41fe5
Support custom rsync flags. (#2115)
* Support custom rsync flags.

* Update changelog.

Co-authored-by: Anton Medvedev <anton@medv.io>
2020-10-08 02:55:54 +03:00
Anton Medvedev
a1103bee17 Migrate to common prepare/publish tasks 2020-10-08 01:53:45 +02:00
Anton Medvedev
34e6c5f00f Fix CHANGELOG.md style 2020-10-08 01:40:51 +02:00
Markus Staab
db1b005ef1
fixed min-php version check (#2102)
* fixed min-php version check

* Update CHANGELOG.md

* more generic wording

* Update dep

Co-authored-by: Anton Medvedev <anton@medv.io>
2020-10-08 02:40:08 +03:00
Anton Medvedev
de23a23b8e Add only needed options to connect command 2020-10-08 01:31:20 +02:00
Anton Medvedev
04c2a406e3 Add verbose() tasks 2020-10-08 01:27:48 +02:00
Anton Medvedev
71afcdcc3a Store composer.phar in .dep 2020-10-08 01:19:39 +02:00
Anton Medvedev
58b47b7484 Update docs 2020-10-08 01:06:10 +02:00
Anton Medvedev
7434bb259a Add once() test 2020-10-08 01:04:25 +02:00
Anton Medvedev
8cb0b39dc3 Switch deploy:shared and deploy:writable order 2020-10-08 00:45:12 +02:00
Anton Medvedev
a5e00c686a Copy shared dir only if there is no dir 2020-10-08 00:42:44 +02:00
Anton Medvedev
dafad94e8e Better error message for ACL 2020-10-08 00:41:18 +02:00
Anton Medvedev
d2c320ccf9 Ask password for deployer user 2020-10-08 00:35:30 +02:00
Anton Medvedev
1deef65987 Apply config overrides in connect command 2020-10-08 00:22:28 +02:00
Anton Medvedev
02ffe906c4 Fix deploy:fail hook 2020-10-08 00:10:38 +02:00
Anton Medvedev
744c56fc09 Refactor deploy:writable 2020-10-07 23:55:41 +02:00
Anton Medvedev
58ed6f9de8 Update README.md 2020-10-07 23:04:16 +02:00
Anton Medvedev
aaee5c68df Add hosts command
Also add autocomplete for hosts selector
2020-10-07 22:52:48 +02:00
Anton Medvedev
7e78b718e9 Throw exception on connect error 2020-10-07 22:18:11 +02:00
Anton Medvedev
f5a7a7765a Add host selector 2020-10-07 22:13:50 +02:00
Anton Medvedev
da851a27ca Add autocomplete command 2020-10-07 22:05:49 +02:00
Anton Medvedev
f2a0f34fb1 Update desc of -f option 2020-10-07 22:05:49 +02:00
Sacharski Bartłomiej
89bde7059c
[issue-2187] Type declarations for src/Configuration (#2188)
Refactored the code in `src/Configuration` to include type declarations
for method arguments and returned values.

To make it easier to track what's left to do and to have a tool that
prevents "regressions" in the future, PHP_CodeSniffer and Slevomat
Coding Standard have been added.

Next, a `phpcs.xml.dist` file has been created and configured to
enforce type hints for methods. For the time being, only files in
the src/Configuration directory are now being watched.

To make it simpler to execute the checks, `lint` script has been
added to `composer.json` to allow running checks with `composer lint`.
2020-10-07 20:48:33 +02:00
Sacharski Bartłomiej
9ccf96795e
[issue-2178] updated CHANGELOG.md (#2186)
Added missing entry about change introduced as a part of fix for
the issue #2178.
2020-10-04 03:16:17 +03:00
Sacharski Bartłomiej
bfb28df9a1
[issue-2178] within() passes through $callback return value (#2185)
The `within()` function has been modified to pass-through the
return value of the callback function.

It is now possible to write code like:

```php
$out = within('/foo', function () {
  return 'bar';
});
```

The `$out` variable will now contain the value `'bar'`.

If the callback function returns nothing, then the return of
`within()` call will be `null`.

Fixes #2178
2020-10-03 20:49:42 +02:00
Sacharski Bartłomiej
5808b2daaa
[issue-2181] Fix unit tests on non-master branches (#2182)
The unit tests would fail, when started on a non-master branch.
This was happening because the test repository has been initialized
with git default branch, whereas deploy configuration expects to
work with current git branch.

This has been fixed by adding `git checkout -B BRANCH_NAME`, right after
test repo initialization to the DeployTest setup procedure, to make sure
that the test repositoryis always in sync repo-wise with the Deployer
repository.

Fixes #2181
2020-10-03 10:41:07 +02:00
Anton Medvedev
ebaff4eb5f Clean up .github 2020-10-02 12:24:34 +02:00
Anton Medvedev
57dea072e6
Update README.md 2020-10-02 01:13:11 +03:00
Anton Medvedev
47a193f9af
Add docgen 2020-10-02 01:11:13 +03:00
Sacharski Bartłomiej
514d997c15
[issue-2170] Use on(localhost(), ...) instead of runLocally in check_remote.php (#2175)
Reworked the `deploy:check_remote` step, to use the `on(localhost(), ...)`,
instead of relying on `runLocally`.

This has been changed, to make sure that the all functions that
are being executed and are related to "local" part of the logic,
are ran on the local host.

Previously in `runLocally(sprintf("%s ls-remote $opt $repository $ref", get('bin/git')));`
the `get('bin/git')` would've been executed on the remote host, which
could have resulted in an unexpected behaviour.

By closing all of the instructions, in the closure that is executed
by the `on()` function, we are sure that the context is set to the
right host.
2020-10-01 20:32:51 +03:00
Anton Medvedev
6a32894218 Add comment on auto generated doc file 2020-09-30 15:35:44 +02:00
Anton Medvedev
fb66dc3dba Add test case for connection string 2020-09-30 15:29:48 +02:00
Anton Medvedev
3735d07794 Fix markdown gen 2020-09-30 09:29:02 +02:00
Anton Medvedev
c7cb9575fe Add api doc generation 2020-09-30 09:25:41 +02:00
Anton Medvedev
6afad4c940 Update README.md 2020-09-29 23:05:37 +02:00
Anton Medvedev
058dc2cead Remove .scrutinizer.yml 2020-09-29 23:01:30 +02:00