我正在使用一个名为 Drone(drone.io) 的 CI 工具。所以我真的很想用它做一些集成测试。我想要的是 Drone 在无人机主机上的某个端口上启动我的应用程序容器,然后我就可以针对它运行集成测试。例如在 .drone.yml 文件中:
build:
image: python3.5-uwsgi
pull: true
auth_config:
username: some_user
password: some_password
email: email
commands:
- pip install --user --no-cache-dir -r requirements.txt
- python manage.py integration_test -h 127.0.0.1:5000
# this should send various requests to 127.0.0.1:5000
# to test my application's behaviour
compose:
my_application:
# build and run a container based on dockerfile in local repo on port 5000
publish:
deploy: