Drone (drone.io)이라는 CI 도구를 사용하고 있습니다. 그래서 나는 그것으로 일부 통합 테스트를 정말로하고 싶다. Drone은 무인 항공기의 일부 포트에서 응용 프로그램 컨테이너를 시작한 다음 이에 대한 통합 테스트를 실행할 수 있습니다. .drone.yml 파일의 예를 들면 :drone.io로 통합 테스트
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: