2053 Commits

Author SHA1 Message Date
Andrey Helldar
9f89525548
[composer 3] Removed deprecated option "--no-suggest" (#2212)
* [composer 3] deprecated option "--no-suggest"

* Updated CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: Anton Medvedev <anton@medv.io>
2020-10-21 23:53:25 +02:00
Anton Medvedev
3667c991df Rename build to unit 2020-10-19 23:58:24 +02:00
Anton Medvedev
106972e9e3 Remove .travis.yml 2020-10-19 22:42:56 +02:00
Sacharski Bartłomiej
67ed1a800b
[#2197] Created E2E testing environment (#2198)
* [#2197] Created E2E testing environment

Created docker-based end-to-end testing environment, which allows
for testing more complex scenarios.

Additionally added FunctionE2ETest class that contains test scenario
for `run` function with placeholders.

Closes #2197

* [#2197] Moved docker to test dir & separated e2e tests from unit-tests

The docker directory has been moved into test/ directory.
Additionally the e2e tests have been separated from the unit-test
files:
  * AbstractE2ETest class is directly inheriting from TestCase,
    dropping relation to the AbstractTest
  * Separate bootstrap.php file for e2e test was created
  * Separate phpunit-e2e.xml.dist file was created to configure
    PHPUnit for just the e2e tests
  * deployer docker service now runs only e2e tests by default

* [#2197] Added E2E tests to GH actions

Added E2E tests steps to GH actions:
* building the docker-compose stack (building images)
* starting the stack to run the tests

If E2E tests fail, then docker-compose up will end with non-zero
exit code, thus the workflow will be marked as failed.

* [#2197] Fixed no output when using run() with sudo

Fixed a discrepancy in the `run()` function, where there would be
no output when the command was being executed with a sudo.

* [#2197] Added testcases for running commands with sudo

Added two testcases for e2e tests, that verify:
* that sudo command can be ran with password provided interactively
* that sudo command can be ran with password passed via argument

To allow for these tests to happen, the Dockerfile for server
service had to be modified - the deployer user will require a
password, when running command with sudo.

* [#2197] Added Laravel-boilerplate deploy E2E test

Added a very simple E2E test that checks whether the Laravel-boilerplate
deploys successfully to the testing server.

The testing scenario will deploy the app, copy sample .env file,
generate the app key and finally try to get the main page contents
to verify that the expected string is visible in the page source.

* [#2197] Moved E2E tests to separate job

Moved E2E tests to separate job and added docker-compose cache
to slightly improve stack build times.

* [#2197] Using deployphp test-laravel repo for E2E tests

Updated the laravel-boilerplate deploy config to use the repository
that belongs to deployphp organization.

Co-authored-by: Bartlomiej Sacharski <beton@cementowina.org>
2020-10-19 23:38:15 +03:00
Anton Medvedev
5b615b42a6 Update README.md 2020-10-17 11:15:50 +02:00
Anton Medvedev
9fdade7b90 Update changelog 2020-10-17 11:13:08 +02:00
bonswouar
f7fb577b34
[#2207] Symfony change dir to execute DoctrineMigrations (#2208)
Co-authored-by: bonswouar <contact@florianmessmer.com>
2020-10-17 11:07:22 +03:00
Anton Medvedev
748a57c89d Back on master 2020-10-16 22:58:01 +02:00
Anton Medvedev
d4acd597f2 Release 7.0.0-beta.2 v7.0.0-beta.2 2020-10-16 22:56:35 +02:00
Anton Medvedev
10c8b0de8f Better dep init command 2020-10-16 22:54:20 +02:00
Anton Medvedev
f65d013574 Rename Console namespace to Command 2020-10-15 22:21:27 +02:00
Anton Medvedev
8e8c0bc2dc Add yaml syntax 2020-10-15 22:12:24 +02:00
helsner
f251352fa2
feat!: adapt chat notify favicon to handle custom links (#2203)
* feat!: adapt chat notify favicon to handle custom links

* style: add missing punctuation
2020-10-14 17:33:18 +02:00
Anton Medvedev
e58e3eabd6 Fix test 2020-10-12 22:24:36 +02:00
Anton Medvedev
6163ccb70d No spinner in --no-ansi mode 2020-10-12 22:16:59 +02:00
Anton Medvedev
18bdfc8bd9 Better options passing to worker and connect commands 2020-10-12 22:15:20 +02:00
Anton Medvedev
b006a9b7e5 Remove unused import 2020-10-12 16:02:02 +02:00
Anton Medvedev
09b3292315 Fix typo 2020-10-12 16:01:40 +02:00
Anton Medvedev
fa2ec714ef Better option descriptions 2020-10-12 15:56:55 +02:00
Anton Medvedev
63fe690229 Fix local() in worker 2020-10-11 17:03:50 +02:00
Anton Medvedev
77d3141ad0 Release 7.0.0-beta.1 v7.0.0-beta.1 2020-10-11 16:45:27 +02:00
Anton Medvedev
daee77bf1f Update docs 2020-10-11 16:35:59 +02:00
Anton Medvedev
5bc321f129 Update docs 2020-10-11 16:24:03 +02:00
Anton Medvedev
36596a618e Add dotenv support 2020-10-11 16:23:40 +02:00
Anton Medvedev
5bd53b8fc9 Added env test 2020-10-11 16:04:44 +02:00
Anton Medvedev
91c1d5fbec Docs updates 2020-10-11 01:52:36 +02:00
Anton Medvedev
3c3cb6a608 Improve init command 2020-10-11 00:25:31 +02:00
Anton Medvedev
9b83b8b846 Delete write() func 2020-10-11 00:09:07 +02:00
Anton Medvedev
8e72449246 Add push task 2020-10-11 00:08:50 +02:00
Anton Medvedev
2a8844c377 Add select func 2020-10-10 23:13:43 +02:00
Anton Medvedev
b66f7b0dc1 Better docs 2020-10-10 23:03:37 +02:00
Anton Medvedev
77e7e164a6 Better -vv mode 2020-10-10 22:55:55 +02:00
Anton Medvedev
8e417f7c33 Improve invoke func 2020-10-10 22:47:57 +02:00
Anton Medvedev
83022a3927 Improve select on tasks 2020-10-10 22:37:06 +02:00
Anton Medvedev
e227623ba6 Fix deploy:check_remote task 2020-10-10 21:58:06 +02:00
Anton Medvedev
0bb88a06cb Catch all 2020-10-10 20:38:49 +02:00
Anton Medvedev
6bea23bf02 Fix status command if release not a git repo 2020-10-10 20:38:32 +02:00
Anton Medvedev
7a096b9dd1 Simplify init command 2020-10-10 20:38:11 +02:00
Anton Medvedev
f05f74642c Remove unuseful comments 2020-10-10 18:26:15 +02:00
Anton Medvedev
0ec5aea8a5 Remove unused class 2020-10-10 18:24:09 +02:00
Anton Medvedev
dca0796a80 Fix imports 2020-10-10 18:22:52 +02:00
Anton Medvedev
86732395fb Add telemetry 2020-10-10 18:21:59 +02:00
Anton Medvedev
418d4aa6eb Update build script 2020-10-10 17:10:24 +02:00
Anton Medvedev
040489d587 Update test 2020-10-10 10:50:45 +02:00
Anton Medvedev
6bd45d9223 Update docs 2020-10-09 23:21:03 +02:00
Sacharski Bartłomiej
357cfc04c8
[#2192] Support for placeholders in run and runLocally (#2193)
* [#2192] Support for placeholders in run and runLocally

Added support for placeholder in the `run` and `runLocally` functions.
By passing the `vars` key with an associative array to the second
argument of `run` and `runLocally`, it is possible to use placeholders
in the command, that will be used directly in the executed command.

The placeholders should be wrapped in the command with `%NAME%`, for
instance `%foo%`. The `vars` array could be `[ 'foo' => '{{bar}}']`.

Sample:

```php
runLocally("echo '%foo%'", ['vars' => ['foo' => '{{bar}}']]);
```

will output:

```plain
{{bar}}
```

* [#2192] Added missing implementation for placeholders in run()

Added missing implementation for placeholders support int the `run()`
function as it was missing in previous commit.

Co-authored-by: Bartlomiej Sacharski <beton@cementowina.org>
2020-10-10 00:16:55 +03:00
Anton Medvedev
f429c750bc Keep release on rollback and mark it as bad 2020-10-09 23:11:30 +02:00
Anton Medvedev
4493fe913a Fix test 2020-10-09 02:24:44 +02:00
Anton Medvedev
84c9f6bb58 Add status command 2020-10-09 02:24:09 +02:00
Anton Medvedev
c88ebe275f Allow to change current_path 2020-10-09 01:35:42 +02:00