2350 Commits

Author SHA1 Message Date
Fabian Blechschmidt
b6dcf93e14
Add missing doc update 2021-07-23 14:48:05 +02:00
Fabian Blechschmidt
515eac3c0a
DRAFT: First activate plugins/themes THEN build them (#2607)
* First activate plugins/themes THEN build them

Currently the first step is to run bin/build.sh which builds all *ACTIVATED* themes. After this step we activate all composer-registered plugins (which in my case are all the themes) and THEN compile them. For new themes that means, that they are *NOT* build because they are activated AFTER building.

This PR fixes that and activated first and builds second.

* update changelog
2021-07-22 15:40:40 +02:00
Tobias Schultze
239b817540
Fix symfony cache:clear running twice on deployment (#2602)
* Fix symfony cache:clear running twice on deployment

Any standard symfony app is running cache:clear on composer install ever since.
I.e. in composer.json

```
"scripts": {
    "auto-scripts": {
      "cache:clear": "symfony-cmd",
      "assets:install %PUBLIC_DIR%": "symfony-cmd"
    },
    "post-install-cmd": [
      "@auto-scripts"
    ],
    "post-update-cmd": [
      "@auto-scripts"
    ]
  },
```

This prevents cache clearing being run twice for no reason.

* regenerate doc
2021-07-15 23:20:44 +03:00
Tobias Schultze
5800b319c0
Cachetool improvements (#2604)
* Cachetool improvements

- remove outdated cachetool apc command (not apcu) that does not exist since 4.x,
- document web adapter example
- use release_or_current_path to be able to execute tasks outside of deployment

* regenerate doc
2021-07-15 23:19:45 +03:00
Anton Medvedev
14ee09139f Back to master 2021-07-01 20:18:55 +00:00
Anton Medvedev
7d72d6a64f Release 7.0.0-beta.24 v7.0.0-beta.24 2021-07-01 20:18:55 +00:00
Anton Medvedev
2d9a9dcfaa
Remove vars (#2596) 2021-07-01 23:17:23 +03:00
Markus Staab
2a5d5c2032
Support passing null as default in get() (#2560)
* Support passing `null` as $default in get()

* Update CHANGELOG.md

Co-authored-by: Markus Staab <m.staab@complex-it.de>
2021-06-17 07:30:44 +03:00
Fabian Blechschmidt
784e7b7b31
Fixes #2574 (#2575) 2021-06-09 23:52:53 +03:00
Vladimir
8b3d7f726c
add .gitattributes - exclude tests, docs from archives (#2553) 2021-05-27 09:08:30 +02:00
Sacharski Bartłomiej
d3b6eaf9fe
Added support for code coverage in E2E tests (#2533)
The E2E docker-compose stack has been modified to include code
coverage for all scripts that are kept in /project and are not
in the exclusion list.

The start command for `deployer` container has been replaced
with a `start-e2e-test.sh` script, which will execute E2E tests,
generate a Clover report and then return the exit code of E2E test
process to make sure that CI is aware of the test result.

Whole idea for collecting E2E coverage has been inspired by the
[this][1] article. All of scripts in `deployer` container will
now start with additional wrapper-like PHP code, which checks
if the `PHP_CCOV_START_FILE` variable is present. If not,
then nothing happens, but if the variable points to a PHP file,
then that file is being included.

The `docker-compose.yml` file has `PHP_CCOV_START_FILE` configured
to point to a file, which sets up code coverage, that starts counting
which instructions in `/project` directory have been called. Once
`php` interpreter starts shutting down, the coverage report is being
dumped into temporary files.

Once all tests have been processed, a script for merging partial
coverage reports is executed and finally a Clover code coverage file
is stored in the path defined in the `PHP_CCOV_OUTPUT_FILE` env var.

[1]: https://tarunlalwani.com/post/php-code-coverage-web-selenium/
2021-05-02 15:15:19 +02:00
Fabian Blechschmidt
f77186eb7b
Fixes #2525 (#2526) 2021-04-27 07:18:37 +02:00
Jeffrey Cafferata
a38a01615e
Update GIT remote origin (#2520)
Changed the way the GIT remote URL is fetched from the config.
2021-04-22 19:14:09 +02:00
Anton Medvedev
88f6e42368 Back to master 2021-04-20 22:42:13 +00:00
Anton Medvedev
b5c526aca3 Release 7.0.0-beta.23 v7.0.0-beta.23 2021-04-20 22:42:13 +00:00
Anton Medvedev
817a6b3cd8 Remove dump-env 2021-04-21 00:39:41 +02:00
Loris Leiva
7fed20a098
Fix contains multiple commands regex (#2518) 2021-04-19 18:40:26 +02:00
Anton Medvedev
05b82ece80 Update getting-started.md 2021-04-18 22:01:23 +02:00
Anton Medvedev
488cb64c55 Update getting-started.md 2021-04-18 21:57:06 +02:00
Anton Medvedev
3f49bf4c4e Update getting-started.md 2021-04-18 18:54:32 +02:00
Anton Medvedev
9800f052ea Update getting-started.md 2021-04-18 15:35:47 +02:00
Anton Medvedev
e6f24e4bcd Back to master 2021-04-18 12:12:58 +00:00
Anton Medvedev
4c59b7f40d Release 7.0.0-beta.22 v7.0.0-beta.22 2021-04-18 12:12:58 +00:00
Anton Medvedev
da8bb1adff Fix deploy:update_code
Now default target is HEAD, also better at switching repository url.
2021-04-18 13:54:31 +02:00
Anton Medvedev
8f649331a5 Fix comment 2021-04-18 13:53:15 +02:00
Anton Medvedev
729b207cde Better init banner 2021-04-17 22:12:28 +02:00
Sacharski Bartłomiej
165ffa119a
Implemented ConsoleApplicationTester for isolated E2E tests (#2513)
Added a new class ConsoleApplicationTester, which during E2E tests
will create a separate isolated process for the Deployer to run in.

This class exposes methods for interacting with stdin and to grab
stdout, stderr and status code of finished process.
2021-04-17 23:11:26 +03:00
Anton Medvedev
c23688adcf Add default symfony_env 2021-04-17 15:41:12 +02:00
Markus Staab
24fc2fadad
upload(): add more precise phpdocs (#2511)
* upload(): add more precise phpdocs

* Update Rsync.php

* Update Rsync.php

* Update functions.php
2021-04-17 09:02:42 +03:00
Anton Medvedev
20e9826836 Back to master 2021-04-16 20:28:37 +00:00
Anton Medvedev
03dff45bed Release 7.0.0-beta.21 v7.0.0-beta.21 2021-04-16 20:28:37 +00:00
Anton Medvedev
3017790b87 Fix empty host in init command 2021-04-16 22:21:13 +02:00
Anton Medvedev
079f6e4745 Fix DEPLOYER_VERSION undefined 2021-04-16 22:20:51 +02:00
Anton Medvedev
425b5c204f Make banner prettier 2021-04-16 22:20:35 +02:00
Loris Leiva
a26059d8a7
Fix regex that identifies "cd" commands in YAML scripts (#2510)
* Fix regex that identifies "cd" commands in YAML scripts

* Update CHANGELOG.md
2021-04-16 18:08:14 +03:00
Anton Medvedev
fb72c94804 Fix docgen bug 2021-04-16 12:04:06 +02:00
Victor Paumier
63a0e667b7
add deploy:dump-env & remove .env.local.php from shared_files (#2507) 2021-04-16 12:13:58 +03:00
Anton Medvedev
f0ac01a248 Update phpstan-baseline.neon 2021-04-15 22:53:41 +02:00
Anton Medvedev
6371a4bcff Rename DiceCommand to BlackjackCommand 2021-04-15 22:23:12 +02:00
Fabian Blechschmidt
9ca1f05c59
#2503: TypeError, port is int on escapeshellarg (#2504)
* #2503: TypeError, port is int on escapeshellarg
2021-04-13 15:32:51 +02:00
Rick Schippers
b212b83e67
Bugfix shopware recipe plugin updates (#2414)
* removed incorrect duplicate version column

Output is as follows so:

$plugin,$label,$version,$upgrade,$author,$installed,$active,$upgradeable,

Shopware Plugin Service
=======================

 ------------------- --------------------------------------------------------- --------- ----------------- --------------------------- ----------- -------- -------------
  Plugin              Label                                                     Version   Upgrade version   Author                      Installed   Active   Upgradeable
 ------------------- --------------------------------------------------------- --------- ----------------- --------------------------- ----------- -------- -------------
  BuckarooPayments    Buckaroo Payment                                          1.1.1                       Buckaroo                    Yes         Yes      No
  DevTools            Additional tools to support your Shopware 6 development   0.2.0                       Maurits Meester             Yes         Yes      No

* Invoke sw:plugin:refresh inside sw:plugin:activate:all instead of incorrectly redefining it

* Upgrade all plugins that are upgradeable

* Changelog update

* Ran docgen

* Do NOT make upgrading all default

* Update doc

Co-authored-by: Fabian Blechschmidt <github@fabian-blechschmidt.de>
Co-authored-by: Fabian Blechschmidt <blechschmidt@fabian-blechschmidt.de>
2021-04-13 15:31:51 +02:00
Anton Medvedev
895762dc38 Move comment to api 2021-04-12 22:17:23 +02:00
fliespl
3d6d55578f
Rsync stats config option (#2500)
* rsync stats

* update doc block
2021-04-12 23:05:34 +03:00
memen45
85ba976307
Update magento2.php (#2452)
Fixes failed deploys when app/etc/config.php is changed with added sites, stores, store views or themes.

Co-authored-by: Fabian Blechschmidt <github@fabian-blechschmidt.de>
2021-04-11 16:49:46 +02:00
Loris Leiva
a313326911
Fix ACL error message (#2501)
* Fix ACL error message

* Update CHANGELOG.md
2021-04-11 16:45:55 +02:00
Anton Medvedev
00467b0edf Fix typo 2021-04-09 22:51:52 +02:00
Anton Medvedev
aa871c6b13 Update installation.md 2021-04-09 22:49:52 +02:00
Anton Medvedev
d9cdb38ef2 Back to master 2021-04-09 20:33:06 +00:00
Anton Medvedev
c3b200d0eb Release 7.0.0-beta.20 v7.0.0-beta.20 2021-04-09 20:33:06 +00:00
Anton Medvedev
457eb6d074 Fix --log option 2021-04-09 22:30:07 +02:00