config.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. version: 2.1
  2. jobs:
  3. lint-scripts:
  4. docker:
  5. - image: koalaman/shellcheck-alpine
  6. steps:
  7. - checkout
  8. - run:
  9. name: lint-scripts
  10. command: .circleci/lint-scripts.sh
  11. install-mysql:
  12. docker:
  13. - image: circleci/ruby:2.4.4
  14. - image: circleci/mysql:5.7-ram
  15. command: --max_allowed_packet=64MB
  16. environment:
  17. MYSQL_DATABASE: zammad_test
  18. MYSQL_USER: zammad_test
  19. MYSQL_PASSWORD: zammad_test
  20. environment:
  21. RAILS_ENV: test
  22. steps:
  23. - checkout
  24. - run:
  25. name: install-mysql
  26. command: .circleci/install.sh
  27. install-postgresql:
  28. docker:
  29. - image: circleci/ruby:2.4.4
  30. - image: circleci/postgres:11-ram
  31. environment:
  32. POSTGRES_DB: zammad_test
  33. POSTGRES_USER: zammad_test
  34. POSTGRES_PASSWORD: zammad_test
  35. environment:
  36. RAILS_ENV: test
  37. steps:
  38. - checkout
  39. - run:
  40. name: install-postgresql
  41. command: .circleci/install.sh
  42. docker-image-build:
  43. machine: true
  44. steps:
  45. - checkout
  46. - run:
  47. name: docker-image-build
  48. command: .circleci/docker-image-build.sh
  49. workflows:
  50. version: 2
  51. install_unittest_dockerbuild:
  52. jobs:
  53. - lint-scripts
  54. - install-mysql:
  55. requires:
  56. - lint-scripts
  57. - install-postgresql:
  58. requires:
  59. - lint-scripts
  60. - docker-image-build:
  61. requires:
  62. - install-mysql
  63. - install-postgresql