249 Commits

Author SHA1 Message Date
Anton Medvedev
7434bb259a Add once() test 2020-10-08 01:04:25 +02:00
Anton Medvedev
744c56fc09 Refactor deploy:writable 2020-10-07 23:55:41 +02:00
Anton Medvedev
f5a7a7765a Add host selector 2020-10-07 22:13:50 +02: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
fb66dc3dba Add test case for connection string 2020-09-30 15:29:48 +02:00
Anton Medvedev
35ced977f9 v7 2020-09-29 22:56:35 +02:00
Anton Medvedev
b633e98fd3 Add server test 2020-09-28 08:13:19 +02:00
Anton Medvedev
deffcbda99 Fix worker test 2020-09-28 00:23:23 +02:00
demokn
a55c14f820
Fix: merge $options env to context env config, with overwriting (#2165) (#2166) 2020-09-23 21:01:29 +03:00
Andreas Möller
96c739bd5b
Enhancement: Add deploy:is-unlocked (#2152) 2020-09-03 16:17:52 +03:00
Anton Medvedev
8293eb931e wip 2020-07-26 22:35:08 +03:00
Anton Medvedev
1b816a45f5 wip 2020-07-26 12:03:52 +03:00
Anton Medvedev
f512cfd420 wip 2020-07-22 19:17:25 +03:00
Anton Medvedev
29a643b623 v7 2020-05-16 18:02:17 +03:00
Anton Medvedev
d9c744808e Add checks for fromShellCommandline method 2019-12-15 21:51:28 +07:00
Anton Medvedev
86c7b3848f Fix incompatibility with Symfony 5 2019-12-15 21:11:39 +07:00
Anton Medvedev
4190e28fcb
Revert "Handle asterisk wildcard in shared files (#1895)" (#1897)
This reverts commit 6dd0a2c1f7eda33f9b5dbde287ffeda889e025de.
2019-08-08 11:26:20 +03:00
Vytautas Koryzna
6dd0a2c1f7 Handle asterisk wildcard in shared files (#1895) 2019-08-07 11:02:08 +03:00
extacy
756f121205 Fix crashes on including autoloader in recipe file (#1833)
* Fix crashes on including autoloader in recipe file

* Update CHANGELOG.md
2019-07-17 11:34:47 +03:00
Stephan Jorek
42de97b1a1 Fix home-directory tilde-expansion (~) in paths by limiting the replacement to leading tilde only (#1852) 2019-06-02 20:24:21 +03:00
Kick_the_BUCKET
c27aa03019 Properly handle input options (#1793)
* Properly handle VALUE_NONE options

* Add test-case for unset VALUE_NONE option

* Fix null and empty string handling

* Better handle value-required options

* Add test-case names for easier issue finding

* Properly handle empty string values

* Update changelog

* Minor test expectation improvement

* Make the input filtering anonymous function static
2019-01-17 12:55:36 +07:00
Vitaliy Ryaboy
0db4d18d8f improve ParallelExecutor::generateOptions to manage all types of InputOption (#1792) 2019-01-15 12:52:08 +07:00
Jérémie Augustin
f8ecded38c Fix task(...)->once() with --parallel and --limit (#1784)
* add test to show issue with once() used with --parallel and --limit issue

* handle once() in a better way to prevent issue with --parallel and --limit
2019-01-06 14:07:40 +07:00
Vitaliy Ryaboy
01782211e7 remove undefined class usage (#1714) 2018-09-28 08:17:11 +03:00
Anton Medvedev
9e24cf4c1b
Changelog parser (#1692)
* Add changelog parser

* Add changelog stringer

* Fix empty lines

* Better error message

* Remove getters

* Remove extra white space

* Style fix

* Add test

* Add update/release/fix commands

* Update PULL_REQUEST_TEMPLATE.md

* Update tests
2018-09-06 13:03:38 +07:00
J Randall
b4672dd2fb Fixes issue #1671, Range expansion in FileLoader when host.yml is loa… (#1686) 2018-09-04 13:28:33 +07:00
Marc Legay
fe88babd85 Fixed once() tasks that where being run multiple times with ParallelE… (#1624)
* Fixed once() tasks that where being run multiple times with ParallelExecutor

* CHANGELOG: reorder issue

* Add test case for parallel deploy on ->once() task
2018-08-27 13:33:45 +07:00
GoodVibesDevelopment
4d0df304f9 Using param's value inside (#1541)
* Parse Host params

* update changelog
2018-04-18 11:34:39 +07:00
Anton Medvedev
a2dbd3be2a Make test branch independence 2018-02-27 23:36:43 +07:00
Gregor Harlan
c1e2633687 parse input before using dirname() (#1545)
* parse input of dirname()

* tests

* changelog
2018-02-14 15:44:35 +07:00
Dariusz Rumiński
192078a540 Upgrade PHPUnit (#1417)
* Upgrade PHPUnit

* Update ScriptManagerTest.php

* Update InitializerTest.php

* Update GroupTaskTest.php

* Update HostSelectorTest.php

* Update DeployerTest.php
2018-01-02 18:13:28 +07:00
Anton Medvedev
67063c3c24 Add tests for deploy:release 2017-12-16 20:29:52 +07:00
Tseho
53fbea17b7 Add tests for invoke on groups 2017-09-17 13:04:03 +02:00
Anton Medvedev
a36e0148f4 Apply fixes from StyleCI 2017-08-16 09:35:28 +00:00
Anton Medvedev
90da753412 Add extra tests 2017-08-16 12:35:16 +03:00
Anton Medvedev
8e01cf6924 Refactor environment variables handling 2017-08-12 20:31:19 +03:00
Anton Medvedev
4570df21cf Apply fixes from StyleCI 2017-08-12 16:03:34 +00:00
Anton Medvedev
d750fb312b Merge branch 'master' into task-callables 2017-08-12 18:44:15 +03:00
Anton Medvedev
53b0261c1b Refactor run and runLocally return type 2017-08-12 18:06:21 +03:00
Anton Medvedev
77a8ae6ff2 Fix tests 2017-08-12 12:02:53 +03:00
Alin Alexandru
668bfa0508 Fixed CS 2017-07-27 14:04:04 +03:00
Alin Alexandru
ee9b3b54cc Fixed CS 2017-07-27 14:02:57 +03:00
Alin Alexandru
e506208b20 Added once feature 2017-07-27 13:55:15 +03:00
Rich Sage
ec099da499 Allow any callable to be passed to task().
This permits callables that aren't specifically closures, to be passed in.
2017-07-21 12:11:59 +01:00
Anton Medvedev
b698f184f6 Fix bug with parallel deploy to same host 2017-06-20 23:27:29 +07:00
Anton Medvedev
ddeb64930a Add misc tests 2017-05-31 13:55:57 +07:00
de Christo
5a200a60f6 #1137 - Added tests and header comment 2017-05-26 10:09:30 +02:00
de Christo
9999e76802 #1137 - Adjusted coding style 2017-05-26 08:36:46 +02:00
de Christo
5fc67f66c0 #1137 - Adjusted coding style 2017-05-26 08:35:01 +02:00