Skip to content

Commit e2443bb

Browse files
authored
Merge pull request #22 from EBISPOT/develop
Released 0.0.8
2 parents 37aebfb + b4cd763 commit e2443bb

File tree

7 files changed

+67
-10
lines changed

7 files changed

+67
-10
lines changed

.gitlab-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ deploy-ingest-sandbox:
5656
- echo "Deploy to sandbox server"
5757
- mkdir -p /root/.kube
5858
- echo ${SANBOX_KUBECONF} | base64 -d > /root/.kube/config
59-
- helm init
59+
- helm init --stable-repo-url https://charts.helm.sh/stable
6060
- helm delete --purge gwas-ingest-service || true
6161
- helm install --name gwas-ingest-service --set k8Namespace=gwas,image.repository=$INGEST_REGISTRY_IMAGE,image.tag=$CI_COMMIT_SHA,image.env.secretsName=sandbox-secrets,image.env.secretsKey=db-backend ./k8chart/ --wait
6262
environment:
@@ -71,7 +71,7 @@ deploy-fallback:
7171
- echo "Deploy to Production fallback server"
7272
- mkdir -p /root/.kube
7373
- echo ${PFALLBACK_KUBECONFIG} | base64 -d > /root/.kube/config
74-
- helm init
74+
- helm init --stable-repo-url https://charts.helm.sh/stable
7575
- helm delete --purge gwas-ingest-service || true
7676
- helm install --name gwas-ingest-service --set k8Namespace=gwas,image.env.envName=prod,image.repository=$INGEST_REGISTRY_IMAGE,image.tag=$CI_COMMIT_SHA,image.env.dbUser=gwasdepo,image.env.secretsName=prod-secrets,image.env.secretsKey=db-backend ./k8chart/ --wait
7777
environment:
@@ -86,7 +86,7 @@ deploy-live:
8686
- echo "Deploy to Production server"
8787
- mkdir -p /root/.kube
8888
- echo ${PLIVE_KUBECONFIG} | base64 -d > /root/.kube/config
89-
- helm init
89+
- helm init --stable-repo-url https://charts.helm.sh/stable
9090
- helm delete --purge gwas-ingest-service || true
9191
- helm install --name gwas-ingest-service --set k8Namespace=gwas,image.env.envName=prod,image.repository=$INGEST_REGISTRY_IMAGE,image.tag=$CI_COMMIT_SHA,image.env.dbUser=gwasdepo,image.env.secretsName=prod-secrets,image.env.secretsKey=db-backend ./k8chart/ --wait
9292
environment:

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
language: java
2+
sudo: false
3+
jdk:
4+
- openjdk8
5+
6+
env:
7+
global:
8+
- JAVA_OPTS="-XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Xmn48M -Xmx512M"
9+
addons:
10+
sonarcloud:
11+
organization: "gwas-ebi"
12+
#token:
13+
#secure: "LBTAViqGyi7anEYYLzuTyTF1L3Xnq7prupvyzW2mIUWJY6uh9Y3s0TItA+8CSUcbeCUf6MGrj8ydNi4PRLr/DpOCTIrt4FMs5mljaBE4BDfJMgts/hSzLSwSLOa2gKdOJg64ZNpeW+am/hH5/Wbuje6cegeNoNq1yRH4SMBLhnu3/JdmzDLc3pLNuhvNjy6/qX2YPyHLoJ9FE0SfkbULsbzHy7+EDLcxPUVby7aemOD0KUYDxw7Ee4jc5mH9HDrm9sqTFHw+4TWNMA5gsZX4NB3keSElMg9giwVTQT3zLG2sFNbhmhoD2rxs7JxTE+yVeg7ahLSW23LP7mkg4jdc4gR4h1VxB6wwxHIsx+1QZP8MSBOcwYPzLQIp3VyGK37sCVDJHGrpQXZG9SHWZfedmqo6EjabZK8lFCGG8fOTIj5A5FiltfaaHvEfgwbMki12zTm8GftodPJNUT336FNvTHOUlG/RNP3exArWpLXXZXw1gynn57tEVdd5qxdxxpc+QztJiKn2dByWehg5NYh7KwkGcQiNAerYYzMDpIjaVKO1hHeCSouuYFXxp++gBPW0z68Eojp7bVORA/I82nZdY6lkEnFFryHo3RTgU8q6ggDI233r10R/Unsl4bySisQ6z1McPZERQMIton1XMqbAkh3Eb337L+GEGzRSlLehNGM="
14+
script:
15+
- mvn clean verify sonar:sonar -Dspring.profiles.active=test -Dmaven.test.failure.ignore=true -Dmaven.test.error.ignore=true -Dsonar.login=0566d66d0cfe16cd2cb8ba02db7fcd0b6d1e7ee6

pom.xml

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>uk.ac.ebi.spot.gwasdepo</groupId>
88
<artifactId>gwasdepo-ingest-service</artifactId>
9-
<version>0.0.7</version>
9+
<version>0.0.8</version>
1010
<packaging>jar</packaging>
1111

1212
<name>GWAS Deposition App Ingest Service</name>
@@ -20,6 +20,7 @@
2020
<properties>
2121
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2222
<start-class>uk.ac.ebi.spot.gwas.deposition.ingest.Application</start-class>
23+
<sonar.organization>gwas-ebi</sonar.organization>
2324
</properties>
2425

2526
<scm>
@@ -59,14 +60,50 @@
5960
<groupId>org.springframework.boot</groupId>
6061
<artifactId>spring-boot-maven-plugin</artifactId>
6162
</plugin>
63+
64+
<plugin>
65+
<groupId>org.apache.maven.plugins</groupId>
66+
<artifactId>maven-surefire-plugin</artifactId>
67+
</plugin>
68+
69+
<plugin>
70+
<groupId>org.jacoco</groupId>
71+
<artifactId>jacoco-maven-plugin</artifactId>
72+
<version>0.7.7.201606060606</version>
73+
<executions>
74+
<execution>
75+
<goals>
76+
<goal>prepare-agent</goal>
77+
</goals>
78+
</execution>
79+
<execution>
80+
<id>report</id>
81+
<goals>
82+
<goal>report</goal>
83+
</goals>
84+
</execution>
85+
</executions>
86+
</plugin>
87+
88+
6289
</plugins>
90+
91+
<pluginManagement>
92+
<plugins>
93+
<plugin>
94+
<groupId>org.sonarsource.scanner.maven</groupId>
95+
<artifactId>sonar-maven-plugin</artifactId>
96+
<version>3.4.0.905</version>
97+
</plugin>
98+
</plugins>
99+
</pluginManagement>
63100
</build>
64101

65102
<dependencies>
66103
<dependency>
67104
<groupId>uk.ac.ebi.spot.gwasdepo</groupId>
68105
<artifactId>gwasdepo-commons</artifactId>
69-
<version>1.0.13</version>
106+
<version>1.0.15</version>
70107
</dependency>
71108

72109
<dependency>

src/main/java/uk/ac/ebi/spot/gwas/deposition/ingest/rest/dto/StudyDtoAssembler.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ public static StudyDto assemble(Study study) {
3434
study.getCohortId(),
3535
null,
3636
null,
37-
null);
37+
null,
38+
study.isAgreedToCc0());
3839
}
3940

4041
public static StudyDto assemble(Study study, List<AssociationDto> associationDtos,
@@ -62,7 +63,8 @@ public static StudyDto assemble(Study study, List<AssociationDto> associationDto
6263
study.getCohortId(),
6364
associationDtos,
6465
sampleDtos,
65-
noteDtos);
66+
noteDtos,
67+
study.isAgreedToCc0());
6668
}
6769

6870
public static Study disassemble(StudyDto studyDto) {

src/main/java/uk/ac/ebi/spot/gwas/deposition/ingest/service/impl/SubmissionAssemblyServiceImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ public SubmissionDto assemble(Submission submission) {
173173
submission.getAssociations().size(),
174174
submission.getSamples().size(),
175175
submission.getNotes().size()),
176-
ProvenanceDtoAssembler.assemble(submission.getCreated(), userOpt.get()));
176+
ProvenanceDtoAssembler.assemble(submission.getCreated(), userOpt.get()),
177+
submission.isAgreedToCc0());
177178
}
178179
}

src/main/java/uk/ac/ebi/spot/gwas/deposition/ingest/service/impl/SubmissionAssemblyServiceImplV2.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ public SubmissionDto assemble(Submission submission) {
100100
submission.getAssociations().size(),
101101
submission.getSamples().size(),
102102
submission.getNotes().size()),
103-
ProvenanceDtoAssembler.assemble(submission.getCreated(), userOpt.get()));
103+
ProvenanceDtoAssembler.assemble(submission.getCreated(), userOpt.get()),
104+
submission.isAgreedToCc0());
104105
}
105106

106107
@Override

src/test/java/uk/ac/ebi/spot/gwas/deposition/ingest/rest/SubmissionsControllerTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@ public void shouldUpdateSubmissionStatus() throws Exception {
271271
actual.getNotes(),
272272
actual.getDateSubmitted(),
273273
actual.getMetadata(),
274-
actual.getCreated());
274+
actual.getCreated(),
275+
actual.isAgreedToCc0());
275276

276277
response = mockMvc.perform(put(endpoint)
277278
.contentType(MediaType.APPLICATION_JSON).content(mapper.writeValueAsString(updated)))

0 commit comments

Comments
 (0)