Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cicd-backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
adrian.spycher
cicd-backend
Commits
21309c85
Commit
21309c85
authored
1 year ago
by
adrian.spycher
Browse files
Options
Downloads
Patches
Plain Diff
feat: add test to ci
parent
2019de87
No related branches found
No related tags found
No related merge requests found
Pipeline
#30482
passed
1 year ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+7
-1
7 additions, 1 deletion
.gitlab-ci.yml
with
7 additions
and
1 deletion
.gitlab-ci.yml
+
7
−
1
View file @
21309c85
stages
:
stages
:
-
build
-
build
-
test
variables
:
variables
:
MAVEN_OPTS
:
"
-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository"
MAVEN_OPTS
:
"
-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository"
default
:
default
:
image
:
maven:3.8.6-openjdk-18
cache
:
cache
:
key
:
$CI_COMMIT_REF_SLUG
key
:
$CI_COMMIT_REF_SLUG
paths
:
paths
:
...
@@ -12,7 +14,6 @@ default:
...
@@ -12,7 +14,6 @@ default:
build-backend
:
build-backend
:
stage
:
build
stage
:
build
image
:
maven:3.8.6-openjdk-18
before_script
:
before_script
:
-
mvn clean
-
mvn clean
script
:
script
:
...
@@ -20,3 +21,8 @@ build-backend:
...
@@ -20,3 +21,8 @@ build-backend:
artifacts
:
artifacts
:
paths
:
paths
:
-
target/
-
target/
test_backend
:
stage
:
test
script
:
-
mvn test
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