Commit f39204d0 authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE

providing credentials for NCBI eutils call during test

parent c7a09ff8
......@@ -45,7 +45,7 @@ build:
- if [ $RUN_TEST == "1" ]; then apk update && apk add postgresql-client; fi
- if [ $RUN_TEST == "1" ]; then until pg_isready -h ${POSTGRES_HOST}; do echo waiting; sleep 2; docker ps; done; fi
# - exit 1
- if [ $RUN_TEST == "1" ]; then docker run --network host -v $(pwd)/persistent_volume:/code/persistent_volume -e "STORAGE_SUFFIX=$STORAGE_SUFFIX" -e "POSTGRES_PASSWORD=$POSTGRES_PASSWORD" "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" test; fi
- if [ $RUN_TEST == "1" ]; then docker run --network host -v $(pwd)/persistent_volume:/code/persistent_volume -e "STORAGE_SUFFIX=$STORAGE_SUFFIX" -e "POSTGRES_PASSWORD=$POSTGRES_PASSWORD" -e "NCBI_EMAIL=$NCBI_EMAIL" -e "NCBI_API_KEY=$NCBI_API_KEY" "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" test; fi
- if [ $RUN_TEST == "1" ]; then mv persistent_volume/htmlcov ./htmlcov; fi
# Tests have been passed, so pushing
# if we are on master branch, tag the build with latest and push it
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment