Skip to content
Snippets Groups Projects
Unverified Commit e54ac904 authored by Martin Weise's avatar Martin Weise
Browse files

Moved authentication service out of CI/CD

parent 360be7e4
No related branches found
No related tags found
2 merge requests!163Relase 1.3.0,!155Added readme to authentication service and added eureka service
...@@ -31,13 +31,6 @@ build-metadata-db: ...@@ -31,13 +31,6 @@ build-metadata-db:
script: script:
- "make build-metadata-db" - "make build-metadata-db"
build-authentication-service:
stage: build-backend
needs:
- build-metadata-db
script:
- "make build-authentication-service"
build-identifier-service: build-identifier-service:
stage: build-backend stage: build-backend
needs: needs:
...@@ -104,27 +97,10 @@ build-analyse-service: ...@@ -104,27 +97,10 @@ build-analyse-service:
script: script:
- "make build-analyse-service" - "make build-analyse-service"
test-backend-authentication:
stage: test-backend
needs:
- build-authentication-service
script:
- "make test-authentication-service"
- "cat ./fda-authentication-service/report/target/site/jacoco-aggregate/index.html | grep -o 'Total[^%]*%' | sed 's/<.*>/ /; s/Total/Jacoco Coverage Total:/'"
artifacts:
when: always
paths:
- ./fda-authentication-service/report/target/site/jacoco-aggregate/
- ./fda-authentication-service/rest-service/target/surefire-reports/
expire_in: 1 days
reports:
junit: ./fda-authentication-service/rest-service/target/surefire-reports/TEST-*.xml
coverage: '/Total.*?([0-9]{1,3})%/'
test-identifier-service: test-identifier-service:
stage: test-backend stage: test-backend
needs: needs:
- build-authentication-service - build-identifier-service
script: script:
- "make test-identifier-service" - "make test-identifier-service"
- "cat ./fda-identifier-service/report/target/site/jacoco-aggregate/index.html | grep -o 'Total[^%]*%' | sed 's/<.*>/ /; s/Total/Jacoco Coverage Total:/'" - "cat ./fda-identifier-service/report/target/site/jacoco-aggregate/index.html | grep -o 'Total[^%]*%' | sed 's/<.*>/ /; s/Total/Jacoco Coverage Total:/'"
...@@ -312,7 +288,6 @@ build-docker: ...@@ -312,7 +288,6 @@ build-docker:
stage: build-docker stage: build-docker
needs: needs:
- build-metadata-db - build-metadata-db
- build-authentication-service
- build-identifier-service - build-identifier-service
- build-container-service - build-container-service
- build-database-service - build-database-service
......
...@@ -4,14 +4,11 @@ TAG ?= latest ...@@ -4,14 +4,11 @@ TAG ?= latest
all: all:
build-backend: build-metadata-db build-database-service build-query-service build-table-service build-identifier-service build-authentication-service build-container-service build-discovery-service build-gateway-service build-metadata-service build-analyse-service build-backend: build-metadata-db build-database-service build-query-service build-table-service build-identifier-service build-container-service build-discovery-service build-gateway-service build-metadata-service build-analyse-service
build-metadata-db: build-metadata-db:
mvn -f ./fda-metadata-db/pom.xml clean install mvn -f ./fda-metadata-db/pom.xml clean install
build-authentication-service: build-metadata-db
mvn -f ./fda-authentication-service/pom.xml clean package -DskipTests
build-identifier-service: build-metadata-db build-identifier-service: build-metadata-db
mvn -f ./fda-identifier-service/pom.xml clean package -DskipTests mvn -f ./fda-identifier-service/pom.xml clean package -DskipTests
...@@ -147,11 +144,7 @@ release-search: ...@@ -147,11 +144,7 @@ release-search:
release-metadata: release-metadata:
docker push "dbrepo/metadata-service:${TAG}" docker push "dbrepo/metadata-service:${TAG}"
test-backend: test-authentication-service test-container-service test-database-service test-discovery-service test-gateway-service test-query-service test-table-service test-identifier-service test-metadata-service test-semantics-service test-analyse-service test-backend: test-container-service test-database-service test-discovery-service test-gateway-service test-query-service test-table-service test-identifier-service test-metadata-service test-semantics-service test-analyse-service
test-authentication-service: clean build-metadata-db build-authentication-service
docker pull rabbitmq:3-management-alpine
mvn -f ./fda-authentication-service/pom.xml clean test verify
test-identifier-service: clean build-metadata-db build-identifier-service test-identifier-service: clean build-metadata-db build-identifier-service
mvn -f ./fda-identifier-service/pom.xml clean test verify mvn -f ./fda-identifier-service/pom.xml clean test verify
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment