Log server state
@@ -25,11 +25,12 @@ before_script:
- docker-compose up -d
- bash -c 'while [[ "$(curl --insecure -s -o /dev/null -w ''%{http_code}'' http://localhost:8000/healthcheck)" != "200" ]]; do sleep 10 && docker logs cccatalog-api_web_1; done'
- ./load_sample_data.sh
- - bash -c 'while [[ "$(curl --insecure -s -o /dev/null -w ''%{http_code}'' http://localhost:8000/v1/images?q=test)" != "200" ]]; do sleep 5; done'
+ - bash -c 'while [[ "$(curl --insecure -s -o /dev/null -w ''%{http_code}'' http://localhost:8000/v1/images?q=test)" != "200" ]]; docker logs cccatalog-api_web_1; do sleep 5; done'
script:
- pycodestyle cccatalog-api/cccatalog --exclude='cccatalog-api/cccatalog/api/migrations' --max-line-length=80 --ignore=E402,E702
- pycodestyle ingestion_server/ingestion_server --max-line-length=80 --ignore=E402
- cd cccatalog-api && test/run_test.sh
+ - docker logs cccatalog-api_web_1
- cd ../ingestion_server && pytest test/unit_tests.py
- cd ../image_get/worker && pipenv run pytest
- cd ../../ && docker-compose logs analytics
