Commit 6691b95e authored by Jean Meurice's avatar Jean Meurice
Browse files

Update .gitlab-ci.yml

parent a0e56c74
Pipeline #213718 failed with stages
in 18 minutes and 39 seconds
......@@ -9,58 +9,66 @@
image: maven:3-jdk-8
stages:
- windows
- linux
- rpc
- restful
- docker
masterJobWindowsRpc:
stage: windows
stage: rpc
only:
- master
tags:
- Windows10_OS
script:
- cd rpc
- mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B clean deploy --settings ..\settings.xml
- mvn package sonar:sonar --settings ..\settings.xml -DskipTests
tags:
- Windows10
only:
branchJobWindowsRpc:
stage: rpc
except:
- master
tags:
- Windows10_OS
script:
- cd rpc
- mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B clean install --settings ..\settings.xml
masterJobWindowsRestful:
stage: windows
stage: restful
only:
- master
tags:
- Windows10_OS
dependencies:
- masterJobWindowsRpc
script:
- cd restful
# TODO: we have to skip tests for now, because most tests require a running instance of zookeeper
- mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B clean deploy --settings ..\settings.xml -DskipTests
- mvn package sonar:sonar --settings ..\settings.xml -DskipTests
tags:
- Windows10
only:
- master
branchJobWindowsRpc:
stage: windows
script:
- cd rpc
- mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B clean install --settings ..\settings.xml
tags:
- Windows10
except:
- master
branchJobWindowsRestful:
stage: windows
stage: restful
except:
- master
tags:
- Windows10_OS
script:
- cd restful
# TODO: we have to skip tests for now, because most tests require a running instance of zookeeper
- mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B clean install --settings ..\settings.xml -DskipTests
tags:
- Windows10
except:
- master
dependencies:
- branchJobWindowsRpc
# run tests
branchJobLinux:
stage: docker
except:
- master
tags:
- docker
stage: linux
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
......@@ -75,14 +83,14 @@ branchJobLinux:
- ./build.sh
- ./run_test.sh
- ./run_integration_test.sh
except:
- master
# build, test and publish docker images
masterJobLinux:
stage: docker
only:
- master
tags:
- docker
stage: linux
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
......@@ -101,5 +109,3 @@ masterJobLinux:
- docker tag restful-server:latest $CI_REGISTRY_IMAGE:restful
- docker push $CI_REGISTRY_IMAGE:rpc
- docker push $CI_REGISTRY_IMAGE:restful
only:
- master
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