Skip to content
Snippets Groups Projects
Commit 4c5e7a83 authored by Torbjørn Antonsen's avatar Torbjørn Antonsen
Browse files

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!14Continuous integration
Pipeline #267925 passed
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."
...@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment