Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- image: php:7.2
- services:
- - name: mysql:5.7
- variables:
- WITH_XDEBUG: "1"
- DB_HOST: mysql
- DB_USERNAME: root
- MYSQL_USER: root
- MYSQL_ROOT_PASSWORD: xxx
- MYSQL_DATABASE: xxx
- stages:
- - build
- - test
- building:
- stage: build
- image: php:7.2
- script:
- - cp .env.test .env
- - php artisan config:clear
- - php artisan migrate:refresh
- - php artisan db:seed
- artifacts:
- expire_in: 1 month
- paths:
- - vendor/
- - .env
- phpunit:
- stage: test
- image: php:7.2
- script:
- - ./vendor/bin/phpunit --colors --verbose --configuration phpunit.xml
- APP_ENV=local
- APP_DEBUG=true
- APP_KEY=somestring
- DB_CONNECTION=mysql
- DB_HOST=mysql
- DB_DATABASE=xxx
- DB_USERNAME=xxx
- DB_PASSWORD=xxx
- BROADCAST_DRIVER=log
- CACHE_DRIVER=file
- QUEUE_CONNECTION=sync
- SESSION_DRIVER=file
- SESSION_LIFETIME=xxx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement