Hello Laravelians',
I'm trying to get Gitlab CI working for my Laravel 5.0 project but I'm a bit stuck! Anyone got an example Laravel gitlab-ci.yaml file they could share?
Here's one I'm trying but I'm a bit stuck, I think maybe I need to do something with with the image, however I keep just getting an error saying it doesn't know PHP?!
Thank you!
DanC
php -v
bash: line 27: php: command not found
Here's my script so far, I have tried some other docker images too, joostlaan/hhvm-laravel, dylanlindgren/docker-laravel-composer
image: centos7
before_script:
- php -v
- curl -s https://getcomposer.org/installer | php
- cp ./config/pst.gitlab-ci.php ./config/pst.php
- cp ./.env.gitlab-ci ./.env
- php composer.phar install --prefer-dist --quiet
- php composer.phar dump-autoload --quiet
- php artisan key:generate
- php artisan migrate --force
- php artisan up
tests:
script: "phpunit --stop-on-failure && behat -f progress --stop-on-failure"