diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 23d5c10d5420bcb0c7fe34eb2ca9c0ea38bfa845..fabc088547093584a637c8d7d1b7ea31ea859c87 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -157,6 +157,8 @@ lint-helm: - /^release-.*/ needs: - build-metadata-service + dependencies: + - build-metadata-service script: - apk add sed helm curl - helm lint ./helm/dbrepo @@ -169,6 +171,8 @@ test-metadata-service: - /^release-.*/ needs: - build-metadata-service + dependencies: + - build-metadata-service script: - "mvn -f ./dbrepo-metadata-service/pom.xml clean test $MAVEN_OPTS verify" - "cat ./dbrepo-metadata-service/report/target/site/jacoco-aggregate/index.html | grep -o 'Total[^%]*%' | sed 's/<.*>/ /; s/Total/Jacoco Coverage Total:/'" @@ -190,6 +194,8 @@ test-data-service: - /^release-.*/ needs: - build-data-service + dependencies: + - build-data-service script: - "mvn -f ./dbrepo-data-service/pom.xml clean test verify $MAVEN_OPTS" - "cat ./dbrepo-data-service/report/target/site/jacoco-aggregate/index.html | grep -o 'Total[^%]*%' | sed 's/<.*>/ /; s/Total/Jacoco Coverage Total:/'" @@ -213,6 +219,8 @@ test-analyse-service: PIPENV_PIPFILE: "./dbrepo-analyse-service/Pipfile" needs: - build-analyse-service + dependencies: + - build-analyse-service script: - "pip install pipenv" - "pipenv install gunicorn && pipenv install --dev --system --deploy" @@ -238,6 +246,8 @@ test-search-service: PIPENV_PIPFILE: "./dbrepo-search-service/Pipfile" needs: - build-search-service + dependencies: + - build-search-service script: - "pip install pipenv" - "pipenv install gunicorn && pipenv install --dev --system --deploy" @@ -263,6 +273,8 @@ test-lib: PIPENV_PIPFILE: "./lib/python/Pipfile" needs: - build-lib + dependencies: + - build-lib script: - "pip install pipenv" - "pipenv install gunicorn && pipenv install --dev --system --deploy"