From ffeda2012f261b91e314a1161a65a2e4cbe117dd Mon Sep 17 00:00:00 2001 From: zilionis Date: Sun, 14 Dec 2014 03:33:33 -0800 Subject: [PATCH] After investigating found, what shell must be in setup --- Shell-plugin.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/Shell-plugin.md b/Shell-plugin.md index 1bac130..7463dcc 100644 --- a/Shell-plugin.md +++ b/Shell-plugin.md @@ -7,18 +7,20 @@ Runs a given Shell command. * **command** - Required - The shell command to run. ```yml -shell: - command: "bin/console build" +setup: + shell: + command: "bin/console build" ``` You should understand, that in old configuration type, you can run only one command! ### New format of Configuration Options ```yml -shell: - - "cd /www" - - "chmod u+x %buildpath%/bin/console" - - "%BUILD_PATH%/bin/console build" +setup: + shell: + - "cd /www" + - "chmod u+x %buildpath%/bin/console" + - "%BUILD_PATH%/bin/console build" ``` #### Each new command forgets about what was before @@ -26,8 +28,9 @@ shell: So if you want cd to directory and then run script there, combine those two commands into one like: ```yml -shell: - - "cd %BUILD_PATH% && php artisan migrate" # Laravel Migrations +setup: + shell: + - "cd %BUILD_PATH% && php artisan migrate" # Laravel Migrations ```