Advertisement
Guest User

Untitled

a guest
Feb 6th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. # Before Script
  2. before_script:
  3. - composer self-update
  4. - composer install --prefer-dist > /dev/null
  5. - cp .env.example .env
  6. - php artisan key:generate
  7. - php artisan migrate:refresh
  8.  
  9. # Services
  10. services:
  11. - mysql:latest
  12.  
  13. # Variables
  14. variables:
  15. MYSQL_ROOT_PASSWORD: root
  16. MYSQL_USER: homestead
  17. MYSQL_PASSWORD: secret
  18. MYSQL_DATABASE: homestead
  19.  
  20. # PHP 5.5
  21. php:5.5:
  22. image: bobey/docker-gitlab-ci-runner-php5.5
  23. script:
  24. - echo "Running PHPUnit Tests"
  25. - php vendor/bin/phpunit --colors --debug --coverage-text
  26.  
  27. # PHP 5.6
  28. php:5.6:
  29. image: bobey/docker-gitlab-ci-runner-php5.6
  30. script:
  31. - echo "Running PHPUnit Tests"
  32. - php vendor/bin/phpunit --colors --debug --coverage-text
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement