docker unit test setup

梦想的初衷 提交于 2019-12-05 06:53:46

For an example how we setup our project template you may have a look at phundament/app and its testing setup.

We are using a dockerized GitLab installation with a customized runner, which is able to execute docker-compose.

Note! The runner itself is running on a separate Docker host.

We are using docker-compose.yml to define the services in a stack with adjustments for development and testing.

The CI configuration is optimized to handle multiple concurrent tests of isolated stacks, this is just done by specifying a custom COMPOSE_PROJECT_NAME.

Some in-depth documentation about our testing process and useful information about docker-compose and dockerized CI.

Finally, Travis CI also supports Docker since a while, but I haven't tested this approach at all.

If you are new to Docker based CI, please look at Drone:

There some are drawbacks to this solution (like size of images), but it will get you off the grounds.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!