Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. image: alexpfishvision/ubuntu-php7-composer
  2. services:
  3. - postgres:9.5
  4. variables:
  5. POSTGRES_DB: ugol
  6. POSTGRES_USER: postgres
  7. POSTGRES_PASSWORD: pgpass
  8. before_script:
  9. - apt-get -y --allow-unauthenticated install php7.1-pgsql
  10. cache:
  11. paths:
  12. - vendor/
  13. stages:
  14. - prepare
  15. - codeStyle
  16. - test
  17. prepare:
  18. stage: prepare
  19. script:
  20. - composer global require "fxp/composer-asset-plugin:^1.2.0"
  21. - composer install --no-interaction -vv
  22. - cp common/config/main-test.php common/config/main-local.php
  23. - cp common/config/test-docker.php common/config/test-local.php
  24. codeStyle:
  25. stage: codeStyle
  26. script:
  27. - php check-style.php
  28. artifacts:
  29. when: on_failure
  30. paths:
  31. - logs/post-push.log
  32. test:
  33. stage: test
  34. script:
  35. - php ./vendor/bin/codecept run
  36. artifacts:
  37. when: on_failure
  38. paths:
  39. - frontend/tests/_output
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement