You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
847 B

  1. clone:
  2. git:
  3. image: plugins/git
  4. depth: 50
  5. tags: true
  6. pipeline:
  7. frontend:
  8. image: node:8.1.2
  9. group: laravel
  10. commands:
  11. - node -v
  12. - npm -v
  13. - yarn --version
  14. - yarn config set cache-folder .yarn-cache
  15. - yarn install
  16. - yarn run production
  17. backend:
  18. image: laradock/workspace:1.8-71
  19. group: laravel
  20. commands:
  21. - php -v
  22. - composer -V
  23. - cp .env.example .env
  24. - composer install --prefer-dist
  25. - php artisan key:generate
  26. - php artisan migrate
  27. - ./vendor/bin/phpunit
  28. services:
  29. elasticsearch:
  30. image: docker.elastic.co/elasticsearch/elasticsearch:5.3.0
  31. redis:
  32. image: redis:latest
  33. postgres:
  34. image: postgres:9.5.5
  35. environment:
  36. - POSTGRES_DB=homestead
  37. - POSTGRES_USER=homestead
  38. - POSTGRES_PASSWORD=secret