Guest User

Untitled

a guest
Nov 18th, 2017
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. stages:
  2. - build
  3. - test
  4.  
  5. # Variables
  6. variables:
  7. MYSQL_ROOT_PASSWORD: root
  8. MYSQL_USER: homestead
  9. MYSQL_PASSWORD: secret
  10. MYSQL_DATABASE: homestead
  11. DB_HOST: mysql
  12. DB_CONNECTION: mysql
  13.  
  14. build:
  15. stage: build
  16. services:
  17. - mysql:5.7
  18.  
  19. image: chilio/laravel-dusk-ci:stable
  20. script:
  21. - composer install --prefer-dist --no-ansi --no-interaction --no-progress --no-scripts
  22. # - npm install # if you need to install additional modules from your projects package.json
  23. # - npm run dev # if you need to run dev scripts for example laravel mix
  24. cache:
  25. key: ${CI_BUILD_REF_NAME}
  26. paths:
  27. - vendor
  28. - node_modules
  29. - public
  30. - resources
  31.  
  32.  
  33. test:
  34. stage: test
  35. cache:
  36. key: ${CI_BUILD_REF_NAME}
  37. paths:
  38. - vendor
  39. - node_modules
  40.  
  41. services:
  42. - mysql:5.7
  43.  
  44. image: chilio/laravel-dusk-ci:stable
  45. script:
  46. - cp .env.example .env
  47. # - cp phpunit.xml.ci phpunit.xml # if you are using custom config for your phpunit tests in CI
  48. - configure-laravel
  49. - start-nginx-ci-project
  50. # - ./vendor/phpunit/phpunit/phpunit -v --coverage-text --colors --stderr
  51. # - phpunit -v --coverage-text --colors --stderr # if you want to use preinstalled phpunit
  52. - php artisan dusk --colors --debug
  53.  
  54. artifacts:
  55. paths:
  56. - ./storage/logs # for debugging
  57. - ./tests/Browser/screenshots
  58. - ./tests/Browser/console
  59. expire_in: 7 days
  60. when: always
Add Comment
Please, Sign In to add comment