Advertisement
Guest User

Untitled

a guest
Mar 4th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. image: php:7.2
  2. services:
  3. - name: mysql:5.7
  4. variables:
  5. WITH_XDEBUG: "1"
  6. DB_HOST: mysql
  7. DB_USERNAME: root
  8. MYSQL_USER: root
  9. MYSQL_ROOT_PASSWORD: xxx
  10. MYSQL_DATABASE: xxx
  11. stages:
  12. - build
  13. - test
  14. building:
  15. stage: build
  16. image: php:7.2
  17. script:
  18. - cp .env.test .env
  19. - php artisan config:clear
  20. - php artisan migrate:refresh
  21. - php artisan db:seed
  22. artifacts:
  23. expire_in: 1 month
  24. paths:
  25. - vendor/
  26. - .env
  27. phpunit:
  28. stage: test
  29. image: php:7.2
  30. script:
  31. - ./vendor/bin/phpunit --colors --verbose --configuration phpunit.xml
  32.  
  33. APP_ENV=local
  34. APP_DEBUG=true
  35. APP_KEY=somestring
  36.  
  37. DB_CONNECTION=mysql
  38. DB_HOST=mysql
  39. DB_DATABASE=xxx
  40. DB_USERNAME=xxx
  41. DB_PASSWORD=xxx
  42.  
  43. BROADCAST_DRIVER=log
  44. CACHE_DRIVER=file
  45. QUEUE_CONNECTION=sync
  46. SESSION_DRIVER=file
  47. SESSION_LIFETIME=xxx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement