Commit 07576417 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

gitlab ci configuration updated to include additional parameters

parent bf5bef03
......@@ -15,6 +15,10 @@ variables:
POSTGRES_PASSWORD: "123qweasdzxc"
MAVEN_OPTS: "-Dmaven.repo.local=maven.repository"
before_script:
- mkdir /etc/minerva/
- cp test-db-ci.properties /etc/minerva/db.properties
test:frontend:
stage: test
coverage: '/Statements[:\ ]+(\d+.\d+)\%/'
......@@ -51,9 +55,6 @@ test:frontend:
.test_backend_annotation_template:
script: &test_backend_annotation_definition
- mkdir /etc/minerva/
- cp test-db-ci.properties /etc/minerva/db.properties
- mvn -DskipTests=true clean install -pl annotation -am
- mvn test -pl annotation
- awk -F"," '{ instructions += $4 + $5; covered += $5 } END { print covered, "/", instructions, "instructions covered"; print 100*covered/instructions,"% covered" }' annotation/target/site/jacoco/jacoco.csv
......@@ -91,8 +92,6 @@ test:frontend:
.test_backend_converter_SBGNML_template:
script: &test_backend_converter_SBGNML_definition
- mkdir /etc/minerva/
- cp test-db-ci.properties /etc/minerva/db.properties
- mvn -DskipTests=true clean install -pl converter-SBGNML -am
- mvn test -pl converter-SBGNML
- awk -F"," '{ instructions += $4 + $5; covered += $5 } END { print covered, "/", instructions, "instructions covered"; print 100*covered/instructions,"% covered" }' converter-SBGNML/target/site/jacoco/jacoco.csv
......@@ -123,16 +122,12 @@ test:frontend:
.test_backend_persist_template:
script: &test_backend_persist_definition
- mkdir /etc/minerva/
- cp test-db-ci.properties /etc/minerva/db.properties
- mvn -DskipTests=true clean install -pl persist -am
- mvn test -pl persist
- awk -F"," '{ instructions += $4 + $5; covered += $5 } END { print covered, "/", instructions, "instructions covered"; print 100*covered/instructions,"% covered" }' persist/target/site/jacoco/jacoco.csv
.test_backend_rest_template:
script: &test_backend_rest_definition
- mkdir /etc/minerva/
- cp test-db-ci.properties /etc/minerva/db.properties
- mvn -DskipTests=true clean install -pl rest-api -am
- mvn test -pl rest-api
- awk -F"," '{ instructions += $4 + $5; covered += $5 } END { print covered, "/", instructions, "instructions covered"; print 100*covered/instructions,"% covered" }' rest-api/target/site/jacoco/jacoco.csv
......@@ -143,16 +138,12 @@ test:frontend:
- DEBIAN_FRONTEND=noninteractive apt-get install -y curl gnupg git ant
- curl -sL https://deb.nodesource.com/setup_9.x | bash -
- DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs
- mkdir /etc/minerva/
- cp test-db-ci.properties /etc/minerva/db.properties
- mvn -DskipTests=true clean install -pl web -am
- mvn test -pl web
- awk -F"," '{ instructions += $4 + $5; covered += $5 } END { print covered, "/", instructions, "instructions covered"; print 100*covered/instructions,"% covered" }' web/target/site/jacoco/jacoco.csv
.test_backend_service_template:
script: &test_backend_service_definition
- mkdir /etc/minerva/
- cp test-db-ci.properties /etc/minerva/db.properties
- mvn -DskipTests=true clean install -pl service -am
- mvn test -pl service
- awk -F"," '{ instructions += $4 + $5; covered += $5 } END { print covered, "/", instructions, "instructions covered"; print 100*covered/instructions,"% covered" }' service/target/site/jacoco/jacoco.csv
......@@ -488,8 +479,6 @@ test_deploy_with_db_without_superadmin_rights:
image: maven:3.6.0-jdk-8
stage: test
script:
- mkdir /etc/minerva/
- cp test-db-ci.properties /etc/minerva/db.properties
- mvn -DskipTests=true clean install -pl persist -am
- mvn test -pl persist
......
database.uri=jdbc:postgresql://postgres:5432/map_viewer
database.username=map_viewer
database.password=123qweasdzxc
database.driver=org.postgresql.Driver
database.dialect=org.hibernate.dialect.PostgreSQL95Dialect
database.connectionQuery=select 1
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