Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DARIAH-DE Aggregator Services
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DARIAH-DE
DARIAH-DE Aggregator Services
Commits
9cec5ea5
Commit
9cec5ea5
authored
2 years ago
by
Ubbo Veentjer
Browse files
Options
Downloads
Plain Diff
Merge branch '27-fix-all-unit-tests' into 'develop'
Resolve "Fix all UNIT tests" Closes
#27
See merge request
!3
parents
d5adb654
c571f149
No related branches found
No related tags found
1 merge request
!3
Resolve "Fix all UNIT tests"
Pipeline
#305427
passed
2 years ago
Stage: prepare
Stage: test
Stage: build
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+21
-11
21 additions, 11 deletions
.gitlab-ci.yml
pom.xml
+1
-1
1 addition, 1 deletion
pom.xml
src/test/java/info/textgrid/services/aggregator/SearchResultListTest.java
+1
-1
1 addition, 1 deletion
...fo/textgrid/services/aggregator/SearchResultListTest.java
with
23 additions
and
13 deletions
.gitlab-ci.yml
+
21
−
11
View file @
9cec5ea5
...
...
@@ -18,7 +18,7 @@ variables:
###################
.webapp
:
&webapp
image
:
alpine:3.14
stage
:
deploy
_deb
stage
:
deploy
script
:
-
source $VARIABLES_FILE
-
'
apk
add
--no-cache
bash'
...
...
@@ -40,9 +40,10 @@ variables:
-
crane auth login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
stages
:
-
build_version
-
deploy_java
-
deploy_deb
-
prepare
-
test
-
build
-
deploy
# Cache downloaded dependencies and plugins between builds.
# To keep cache across branches add 'key: "$CI_JOB_NAME"'
...
...
@@ -54,7 +55,7 @@ cache:
# Get the project version from main POM file and store it to artifact.
get_version
:
image
:
maven:3.8.3-jdk-8
stage
:
build_version
stage
:
prepare
script
:
-
'
PVERSION=$(mvn
org.apache.maven.plugins:maven-help-plugin:3.1.1:evaluate
-Dexpression=project.version
-q
-DforceStdout)'
-
echo "export PVERSION=$PVERSION" > $VARIABLES_FILE
...
...
@@ -67,13 +68,22 @@ get_version:
paths
:
-
$VARIABLES_FILE
# run junit tests
test
:
stage
:
test
image
:
maven:3.8.3-jdk-8
script
:
-
git submodule update --recursive --init
-
git -C src/main/webapp/tei-stylesheets/ checkout $TEI_STYLESHEETS_VERSION
-
mvn $MAVEN_OPTS $MAVEN_CLI_OPTS $MAVEN_DEPLOY_OPTS -U clean test
artifacts
:
reports
:
junit
:
target/surefire-reports/TEST-*.xml
# Build and deploy all the JARs to GWDG Nexus, and build all the DEBs and store DEBs to artifacts.
build_and_deploy
:
image
:
maven:3.8.3-jdk-8
only
:
-
develop
# - main
stage
:
deploy_java
stage
:
build
script
:
-
source $VARIABLES_FILE
-
git submodule update --recursive --init
...
...
@@ -89,7 +99,7 @@ build_container_image:
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
stage
:
deploy_java
stage
:
build
before_script
:
-
*kaniko-setup
script
:
...
...
@@ -102,7 +112,7 @@ tag_container_image:
image
:
name
:
gcr.io/go-containerregistry/crane:debug
entrypoint
:
[
"
"
]
stage
:
deploy
_deb
stage
:
deploy
before_script
:
-
*crane-setup
script
:
...
...
This diff is collapsed.
Click to expand it.
pom.xml
+
1
−
1
View file @
9cec5ea5
...
...
@@ -541,7 +541,7 @@
<profile>
<id>
textgrid.deb
</id>
<activation>
<activeByDefault>
tru
e
</activeByDefault>
<activeByDefault>
fals
e
</activeByDefault>
</activation>
<build>
<plugins>
...
...
This diff is collapsed.
Click to expand it.
src/test/java/info/textgrid/services/aggregator/SearchResultListTest.java
+
1
−
1
View file @
9cec5ea5
...
...
@@ -15,7 +15,7 @@ public class SearchResultListTest {
@Test
public
void
test
()
{
SearchResultList
results
=
SearchResultList
.
create
(
repository
.
getPublicSearchClient
(),
"genre:\"verse\" AND edition.agent.value:\"anakreon\""
,
"both"
,
null
,
false
)
.
create
(
repository
.
getPublicSearchClient
(),
"
work.
genre:\"verse\" AND edition.agent.value:\"anakreon\""
,
"both"
,
null
,
false
)
.
chunkSize
(
10
);
int
i
=
0
;
for
(
ObjectType
object
:
results
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment