Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Fullstack
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Madeleine Stenberg Jonassen
Fullstack
Commits
4c5e7a83
Commit
4c5e7a83
authored
1 year ago
by
Torbjørn Antonsen
Browse files
Options
Downloads
Plain Diff
Merge branch 'continuous-integration' into 'main'
Continuous integration See merge request
!14
parents
d3822900
7e29d326
No related branches found
No related tags found
1 merge request
!14
Continuous integration
Pipeline
#267925
passed
1 year ago
Stage: build
Stage: test
Stage: package
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+18
-23
18 additions, 23 deletions
.gitlab-ci.yml
FullstackProsjekt/pom.xml
+3
-0
3 additions, 0 deletions
FullstackProsjekt/pom.xml
with
21 additions
and
23 deletions
.gitlab-ci.yml
+
18
−
23
View file @
4c5e7a83
image
:
maven:eclipse-temurin
before_script
:
-
cd FullstackProsjekt
stages
:
stages
:
-
"
.pre"
-
build
-
build
-
test
-
test
-
deploy
-
package
-
"
.post"
build
-job
:
build
:
stage
:
build
stage
:
build
script
:
script
:
-
echo "Compiling the code..."
-
mvn compile
-
echo "Compile complete."
unit-test-job
:
test
:
stage
:
test
stage
:
test
script
:
script
:
-
echo "Running unit tests... This will take about 60 seconds."
-
mvn clean test
-
sleep
60
-
echo "Code coverage is 90%"
package
:
lint-test-job
:
stage
:
package
stage
:
test
script
:
-
echo "Linting code... This will take about 10 seconds."
-
sleep
10
-
echo "No lint issues found."
deploy-job
:
stage
:
deploy
environment
:
production
script
:
script
:
-
echo "Deploying application..."
-
mvn clean package
-
echo "Application successfully deployed."
This diff is collapsed.
Click to expand it.
FullstackProsjekt/pom.xml
+
3
−
0
View file @
4c5e7a83
...
@@ -71,6 +71,9 @@
...
@@ -71,6 +71,9 @@
<plugin>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<configuration>
<mainClass>
edu.ntnu.idatt2105.FullstackProsjektApplication
</mainClass>
</configuration>
</plugin>
</plugin>
</plugins>
</plugins>
</build>
</build>
...
...
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