Each new command forgets about what was before
parent
fa96c12b9f
commit
f980351ee1
1 changed files with 12 additions and 1 deletions
|
|
@ -18,6 +18,17 @@ shell:
|
|||
shell:
|
||||
- "cd /www"
|
||||
- "chmod u+x %buildpath%/bin/console"
|
||||
- "%buildpath%/bin/console build"
|
||||
- "%BUILD_PATH%/bin/console build"
|
||||
```
|
||||
|
||||
#### Each new command forgets about what was before
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
|
||||
[See variables which you can use in shell commands](https://github.com/Block8/PHPCI/wiki/Interpolation)
|
||||
Loading…
Add table
Add a link
Reference in a new issue