ci-environment-test.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. version: '3.1'
  2. services:
  3. selenium:
  4. image: selenium/hub:3.13.0-argon
  5. chrome:
  6. image: selenium/node-chrome:3.13.0-argon
  7. volumes:
  8. - /dev/shm:/dev/shm #Mitigates the Chromium issue described at https://code.google.com/p/chromium/issues/detail?id=519952
  9. environment:
  10. - HUB_PORT_4444_TCP_ADDR=selenium
  11. - HUB_PORT_4444_TCP_PORT=4444
  12. - SCREEN_HEIGHT=1080
  13. - SCREEN_WIDTH=1600
  14. depends_on:
  15. - selenium
  16. manager-e2e:
  17. environment:
  18. - DOCKER=true
  19. - REACT_APP_APP_ROOT=${REACT_APP_APP_ROOT}
  20. - REACT_APP_API_ROOT=${REACT_APP_API_ROOT}
  21. - MANAGER_USER=${MANAGER_USER}
  22. - MANAGER_PASS=${MANAGER_PASS}
  23. - MANAGER_USER_2=${MANAGER_USER_2}
  24. - MANAGER_PASS_2=${MANAGER_PASS_2}
  25. - MANAGER_OAUTH=${MANAGER_OAUTH}
  26. - MANAGER_OAUTH_2=${MANAGER_OAUTH_2}
  27. build:
  28. context: .
  29. dockerfile: Dockerfile
  30. volumes:
  31. - ./e2e/test-results:/src/e2e/test-results
  32. entrypoint: ["./scripts/wait-for-it.sh", "-t", "250", "-s", "selenium:4444", "--", "yarn","e2e", "--log"]
  33. depends_on:
  34. - chrome