Advertisement
Guest User

Untitled

a guest
Apr 13th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. image: php:7.1.1
  2.  
  3. pipelines:
  4. default:
  5. - step:
  6. script:
  7. - echo "RUN!!!"
  8. branches:
  9. develop:
  10. - step:
  11. name: Install all requirements
  12. deployment: test
  13. caches:
  14. - composer
  15. script:
  16. - apt-get update && apt-get install -qy git curl libmcrypt-dev mysql-client
  17. - docker-php-ext-install mcrypt && docker-php-ext-install pdo_mysql
  18. - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
  19. - composer install
  20. - cp .env.example .env
  21. - export APP_ENV=development
  22. - export CACHE_DRIVER=redis
  23. - export SESSION_DRIVER=redis
  24. - export DB_CONNECTION=mysql
  25. - php artisan key:generate
  26. - php artisan migrate
  27. - php artisan serve &
  28. - sleep 5
  29. - curl -vk http://localhost:8000
  30. services:
  31. - mysql
  32. - redis
  33. definitions:
  34. services:
  35. mysql:
  36. image: mysql
  37. environment:
  38. MYSQL_DATABASE: 'finance'
  39. MYSQL_USER: 'finance'
  40. MYSQL_ROOT_PASSWORD: 'finance'
  41. redis:
  42. image: redis
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement