After investigating found, what shell must be in setup
parent
a35f439171
commit
ffeda2012f
1 changed files with 11 additions and 8 deletions
|
|
@ -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
|
||||
```
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue