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

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