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:
- ".pre"
- build
- test
- deploy
- ".post"
build-job:
- package
build:
stage: build
script:
- echo "Compiling the code..."
- echo "Compile complete."
unit-test-job:
- mvn compile
test:
stage: test
script:
- echo "Running unit tests... This will take about 60 seconds."
- sleep 60
- echo "Code coverage is 90%"
lint-test-job:
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
- mvn clean test
package:
stage: package
script:
- echo "Deploying application..."
- echo "Application successfully deployed."
- mvn clean package
......@@ -71,6 +71,9 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>edu.ntnu.idatt2105.FullstackProsjektApplication</mainClass>
</configuration>
</plugin>
</plugins>
</build>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment