1865 Commits

Author SHA1 Message Date
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
Anton Medvedev
35ced977f9 v7 2020-09-29 22:56:35 +02:00
Anton Medvedev
e2875b4dfd
Create test.yml 2020-09-28 09:52:04 +03: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
Anton Medvedev
8d9d8e04ba Add better ask functionality for parallel mode 2020-09-28 00:15:45 +02:00
Joel Pittet
44f5f840c3
Laravel Task artisan:migrate should only run once (#2169)
Add once() again command that got dropped from the v7 updated commit.
2020-09-24 15:28:21 +02:00
demokn
a55c14f820
Fix: merge $options env to context env config, with overwriting (#2165) (#2166) 2020-09-23 21:01:29 +03:00
kicaj
685e7cbd2c
Create cakephp4.php (#2167)
* Create cakephp4.php

* Update cakephp4.php
2020-09-21 14:51:34 +03:00
cavasinf
8a8e41d68a
Update params avalaible in hosts.yml (#2162)
Add `branch` param after issue #1946 FIXED
2020-09-14 13:31:15 +03:00
Peter Jaap Blaakmeer
c19b1dcae1
Add sw:plugin:activate:all and sw:plugin:migrate:all to Shopware 6 recipe (#2159)
Do not update upgradeable plugins, it updates code too. What we actually want is to run the migration. But the database:migrate --all command only runs the migrations for the core. Added a task that runs migrations for all plugins too.

Added || true to not let it fail on non-existing database migrations. This can be removed when this commit is released; 2a8a76fd83
2020-09-10 16:13:52 +02:00
Fabian Blechschmidt
f16e0cbad9
Update shopware6.php (#2158)
* Update shopware6.php

I'm not sure wether this is interesting for your @peterjaap I hacked a script with the horrible table output to install, upgrade and activate all plugins

* Update shopware6.php

made it a static function
2020-09-09 14:32:52 +02:00
Anton Medvedev
a0a66d16eb
Update README.md 2020-09-03 17:54:42 +03:00
Anton Medvedev
ff0f846b0c
Update README.md 2020-09-03 17:52:13 +03:00
Anton Medvedev
9204eae19a
Update README.md 2020-09-03 17:50:45 +03:00
Anton Medvedev
3ea39a40d3 Update issue templates 2020-09-03 17:21:08 +03:00
Andreas Möller
8a4cf9880f
Fix: Do not bother updating composer (#2148) 2020-09-03 16:19:51 +03:00
Andreas Möller
6b42f488af
Enhancement: Validate composer.json and composer.lock (#2149)
* Enhancement: Validate composer.json and composer.lock

* Fix: Update composer.lock
2020-09-03 16:19:22 +03:00
Andreas Möller
96c739bd5b
Enhancement: Add deploy:is-unlocked (#2152) 2020-09-03 16:17:52 +03:00
Fabian Blechschmidt
d0c8cc1a79
Update shopware6.php (#2151)
* Update shopware6.php

Microoptimization

* Update shopware6.php

Run build with bash
FIXES   build.sh: 6: Bad substitution
2020-09-03 16:15:56 +03:00
Peter Jaap Blaakmeer
d198de47b7
Updated Shopware 6 recipe to reflect production template (#2143)
Instead of development template
2020-08-31 09:32:00 +02:00
Brad Morrical
1d758b005f
Symfony 5 recipe (#2139) 2020-08-21 09:47:56 +03:00
Daniel Iwaniec
c1af01195a
Update regarding deploy:update_code (#2137) 2020-08-18 13:25:19 +03:00
Thomas
5e27256966
sort api reference headings (#2135)
* fixes MD012/no-multiple-blanks

fixes MD012/no-multiple-blanks: Multiple consecutive blank lines [Expected: 1; Actual: 2]

* fixes MD001/heading-increment

fixes MD001/heading-increment/header-increment: Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]

* sort headings alphabetically
2020-08-15 00:11:49 +03:00
Peter Jaap Blaakmeer
9735b1f6e5
Updated shared_dirs list, added assets install task for Shopware 6 (#2130) 2020-08-06 14:22:03 +03:00
Peter Jaap Blaakmeer
3f7788f7ad
Updated Shopware 6 recipe (#2129)
* Updated Showpare 6 recipe

* Update shopware6.php
2020-08-06 13:28:39 +03:00
Igor Mukhin
945910e7a6
Fixed: Bug (#2127)
`OutputInterface` have next definition, and `$options` is the third parameter of `write`, not second:
```
    /**
     * Writes a message to the output.
     *
     * @param string|iterable $messages The message as an iterable of strings or a single string
     * @param bool            $newline  Whether to add a newline
     * @param int             $options  A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL
     */
    public function write($messages, bool $newline = false, int $options = 0);
```
2020-07-31 00:56:11 +03:00
Anton Medvedev
8293eb931e wip 2020-07-26 22:35:08 +03:00
Anton Medvedev
728bf55165 wip 2020-07-26 12:07:22 +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
97347ba4e2 wip 2020-07-22 18:22:12 +03:00
Anton Medvedev
59c87c5885 wip 2020-07-11 01:24:18 +03:00
Anton Medvedev
121915fbe2 wip 2020-07-10 00:36:02 +03:00
Anton Medvedev
7c96116df0 wip 2020-07-08 22:12:12 +03:00
Anton Medvedev
b2ec87ce4d wip 2020-07-07 22:18:14 +03:00
Anton Medvedev
ef2c5ba6c5 wip 2020-07-07 22:16:31 +03:00
Savvas Radevic
d22a591bf8
Fix #2111 (#2112)
* Fix #2111 - normalize CRLF to LF new line endings

* Updated CHANGELOG.md #2111
2020-06-26 14:11:32 +03:00
Sergey Asafov
155e4b3095
Ispmanager recipe (#2093)
* Release candidate

* Add logs

* Release candidate

Co-authored-by: Evilcoder <i@evilcoder.me>
2020-06-24 21:49:22 +03:00