Commit 2c892c1f authored by abbenhoumi's avatar abbenhoumi

Update .gitlab-ci.yml

parent 7b2194bb
Pipeline #5959 failed with stages
in 11 seconds
image: maven:latest image: maven:latest
stages: stages:
- build - build
- run - test
- test - run
variables:
MAVEN_CLI_OPTS: "-s .m2/settings.xml --batch-mode"
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
cache: cache:
paths: paths:
...@@ -14,16 +17,15 @@ cache: ...@@ -14,16 +17,15 @@ cache:
build: build:
stage: build stage: build
script: script:
- mvn compile - mvn $MAVEN_CLI_OPTS compile
run:
stage: run
script:
- mvn package
- mvn exec:java -Dexec.mainClass="isima.f2.RamassagePoubleDepotApplication"
test: test:
stage: test stage: test
script: script:
- mvn test - mvn $MAVEN_CLI_OPTS test
dependencies:
- run run:
stage: run
script:
- mvn $MAVEN_CLI_OPTS package
- mvn $MAVEN_CLI_OPTS exec:java -Dexec.mainClass="isima.F2.RamassagePoubleDepotApplicationTests"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment