After investigating found, what shell must be in setup

zilionis 2014-12-14 03:33:33 -08:00
commit ffeda2012f

@ -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
```