319 Commits

Author SHA1 Message Date
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
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
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
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
Brad Morrical
1d758b005f
Symfony 5 recipe (#2139) 2020-08-21 09:47:56 +03:00
Anton Medvedev
59c87c5885 wip 2020-07-11 01:24:18 +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
Sergey Asafov
39e5fbda61
Crontab recipe (#2089)
* First version

* Changelog

Co-authored-by: Evilcoder <i@evilcoder.me>
2020-06-13 12:58:22 +03:00
Anton Medvedev
29a643b623 v7 2020-05-16 18:02:17 +03:00
Anton Medvedev
4e243a64ed Release v6.8.0 2020-04-25 19:05:31 +03:00
M. Vugteveen
c948ea3e99
Added support for composer v2 installed.json format + composer.phar fix (#2031)
* fix composer v2 installed.json parsing

* add changelog

* only use bin/php on phar file

* update chagnelog

* Update dep
2020-04-24 15:53:08 +03:00
Anton Medvedev
7d090af22c
Revert "Output with parallel task execution was garbled (#2016)" (#2030)
This reverts commit e7cc411b235d7588f8b18fac402f87e655055d8c.
2020-04-22 23:07:14 +03:00
ebimmel
e7cc411b23
Output with parallel task execution was garbled (#2016)
Co-authored-by: Eddie Bimmel <eddie.bimmel@yoursurprise.com>
2020-04-20 23:55:48 +03:00
Brad Morrical
58a7d51295
Added recipe for Joomla! (#2024)
* Added recipe for Joomla!

* updating Changelog
2020-04-20 23:53:10 +03:00
David Naber
a20582eb95
Filter output upon stage argument only when defined for host fixes #1909 (#2021) 2020-04-07 18:41:42 +03:00
Alex
ae6f9690a4
Add default_timeout to configuration example (#2018) 2020-04-02 18:27:51 +03:00
Beno!t POLASZEK
a8dabf03ee
Keep consistency with deployer executable naming (#2011) 2020-03-06 12:49:07 +03:00
Ralf Baussenwein
613e631544
fix backward compatibility of bin/console for symfony4 recipe (#2005)
* fix backward compatibility of bin/console for symfony4 recipe

* update Changelog
2020-02-19 15:25:38 +03:00
Jono Menz
c0bf1d7913
Fix check_remote task revision resolution (#1995)
* Support branch & tag if specified
* Support shortened commit hashes
* Skip on first deployment
* Get true current ref from git

Fixes #1994
2020-02-01 22:15:53 +03:00
Vladimir Pak
377adf977a
Speedup deploy:clear_paths (#1992)
* Update clear_paths.php

one run much faster than several

* Update CHANGELOG.md
2020-01-30 12:08:11 +03:00
Jono Menz
b7a728b7b3
Fixes for check_remote task and SS recipe (#1991)
* Fix check_remote task

* Check remote head contents locally
* Ensure .dep/HEAD file is available so error isn’t thrown
* Document task usage

Fixes #1990

* Fix Silverstripe recipe

* Additionally check shared directory for assets since this directory is commonly excluded from project git repos
* Ensure shared_assets returns a non-null value so the release folder can’t get accidentally deleted

Fixes #1989

* Update CHANGELOG.md

* Clarified contribution instructions

* Update issue templates

Added a bug report template
2020-01-29 11:13:11 +03:00
Anton Medvedev
5095b5de16 Release 6.7.3 2019-12-18 20:30:49 +03:00
Arnout Boks
5f32216c11 More Symfony 5 compatibility fixes (#1971)
* Make Rsync compatible with symfony/process v5

* Make Ssh client compatible with symfony/process v5

* Add CHANGELOG entry
2019-12-17 20:43:48 +07:00
Anton Medvedev
97c63e91cc Release v6.7.2 2019-12-16 18:41:57 +07:00
Anton Medvedev
6242bb8748 Release v6.7.1 2019-12-15 21:13:11 +07:00
Anton Medvedev
86c7b3848f Fix incompatibility with Symfony 5 2019-12-15 21:11:39 +07:00
Anton Medvedev
9fd858fbd6 Release v6.7.0 2019-12-14 17:38:03 +07:00
Ganon
9ce3f79c2f Add Symfony 5 support (#1956) 2019-12-06 15:55:19 +07:00
Anton Medvedev
74b3f73e60
Update CHANGELOG.md 2019-11-06 20:19:15 +03:00
Anton Medvedev
3d6e07cce6 Release v6.6.0 2019-11-06 20:11:39 +03:00
Eric Mueller
de552458fd Sample real-world deployment script (#1929)
* Sample real-world deployment script

This is a simple Deployer script.

* Update CHANGELOG.md

* moved info about new doc page to "added" section

* After running `php bin/changelog fix`
2019-10-06 14:34:00 +03:00
Eric Mueller
d7e44667d5 Minor tweak to docs to clarify deploy_stage variable (#1930)
* Clarified default_stage, made example 'staging'

Addresses issue #1866

Clarified that you need to set a default_stage in your Deployer script, and also changed the example to 'staging' since that is a better example default to have (instead of production).

* Update CHANGELOG.md

* Fixed formatting on issue number
2019-10-06 14:33:45 +03:00
Tomasz Gąsior
f82128686e Update symfony4 recipe (#1923)
Fix wrong change introduced in 62db938884

`.env` file should not be shared because it's release-specific. On the other hand, `.env.local` and `.env.local.php` files are specific to deployment environment and should be shared between releases.

See for details: https://github.com/deployphp/deployer/pull/1907#issuecomment-533779139
2019-09-22 15:06:47 +03:00
Anton Medvedev
f344ca1313 Update CHANGELOG.md 2019-08-13 19:02:21 +03:00
Anton Medvedev
427b83ea55 Release 6.5.0 2019-08-12 21:28:24 +03:00
Anton Medvedev
85aae9fd68 Add deploy:check_remote task 2019-08-12 21:01:32 +03:00
Anton Medvedev
d1a6e201ef Release 6.4.7 2019-08-12 13:42:32 +03:00
Kyle Tucker
6180366acf Update config:hosts and config:current task recipes (#1901)
* Update config:hosts and config:current task recipes

* Update changelog

* Fix variable refs
2019-08-09 22:16:00 +03:00
Markus Staab
301ebedc3b fixed invalid phpdoc (#1899)
* fixed invalid phpdoc

* Update CHANGELOG.md

* fixed askChoice() @return phpdoc

it can return array on multiselect questions but also scalars on non-multi

* fixed typo

* fixed another typo

* more precise phpdoc
2019-08-09 13:45:41 +03:00
Anton Medvedev
f891e29817 Add infection configuration 2019-08-08 13:24:56 +03: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
Anton Medvedev
24c22a049d Update CHANGELOG.md 2019-08-07 11:02:26 +03:00
Vytautas Koryzna
6dd0a2c1f7 Handle asterisk wildcard in shared files (#1895) 2019-08-07 11:02:08 +03:00
Anton Medvedev
a7808a21f8 Update CHANGELOG.md 2019-08-07 11:01:25 +03:00
Anton Medvedev
ae07194beb
Update CHANGELOG.md 2019-08-06 22:03:58 +03:00
Wim Griffioen
a6ff2eb4c6 Add tasks to cache a manifest of event listeners (#1893)
* Add tasks to cache a manifest of event listeners

Laravel supports automatic discovery of events and listeners since
version 5.8.9. (https://laravel.com/docs/5.8/events#event-discovery)
As the documentation states, you want to cache the manifest of event
listeners in a production environment to prevent scanning the
directories on every request.

The new tasks are not added to the deploy task because automatic event
discovery is opt-in functionality in Laravel.

* Update CHANGELOG.md
2019-08-06 21:55:32 +03:00
Ahmad Mayahi
bb4d41c896 Add check_remote_head option to avoid unnecessary new releases by che… (#1759)
* Add check_remote_head option to avoid unnecessary new releases by checking the remote git HEAD without cloning the repo.

* Add check_remote_head into the CHANGELOG

* Add the pull request link to CHANGELOG

* Update CHANGELOG.md

Removed extra spaces: https://github.com/deployphp/deployer/pull/1759

* Fix changelog. Improve check_remote_head

* Use GrasefulSutdown exception instead of exit(0).

* Change bash if statement in check_remote_head.

* Remove redundant code.

* Replace if statement with test.
2019-08-06 21:52:41 +03:00