Each new command forgets about what was before

poul-kg 2014-07-17 03:42:22 -07:00
commit f980351ee1

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