Split deploy step into own job to enable integration tests in master

parent ea4a1eb3
Pipeline #106523 failed
stages:
- windows
- linux
- linuxCompile
- integration
masterJobLinux:
stage: linux
image: maven:3-jdk-8
script:
- mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B clean deploy --settings settings.xml
- cat target/site/jacoco/index.html
- mvn package sonar:sonar -s settings.xml
only:
- master
- linuxDeploy
masterJobWindows:
stage: windows
......@@ -20,16 +11,35 @@ masterJobWindows:
tags:
- Windows10
BranchJobLinux:
stage: linux
CompileJobLinux:
stage: linuxCompile
image: maven:3-jdk-8
artifacts:
paths:
- target/generated-sources-cmake/
- target/generated-sources-ros2/
- target/
expire_in: 1 day
script:
- mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B clean install --settings settings.xml
- cat target/site/jacoco/index.html
DeployJobLinux:
stage: linuxDeploy
image: maven:3-jdk-8
dependencies:
- CompileJobLinux
script:
- mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B deploy --settings settings.xml
only:
- master
FakeDeployJobLinux:
stage: linuxDeploy
image: maven:3-jdk-8
dependencies:
- CompileJobLinux
script:
- echo "branch != master => skipping deploy"
- ls target
except:
- master
......@@ -37,9 +47,7 @@ RosIntegrationJob:
stage: integration
image: registry.git.rwth-aachen.de/monticore/embeddedmontiarc/generators/emam2middleware/ema-ros-kinetic
dependencies:
- BranchJobLinux
except:
- master
- CompileJobLinux
script:
- ./src/test/bash/integrationTestRos.sh
......@@ -48,7 +56,5 @@ Ros2IntegrationJob:
image: registry.git.rwth-aachen.de/monticore/embeddedmontiarc/generators/emam2middleware/ema-ros-crystal
dependencies:
- BranchJobLinux
except:
- master
script:
- ./src/test/bash/integrationTestRos2.sh
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