Commit d4c9c9de authored by Alicja Reniewicz's avatar Alicja Reniewicz
Browse files

added config for build

parent aba7e9ad
# Gitlab CI/CD script for the Morphemic Preprocessor project
variables:
MAVEN_IMAGE: "maven:3.5.2-jdk-8"
LOCAL_REPO: "127.0.0.1:5000"
SCHEDULING_ABSTRACTION_LAYER_CLI: "mvn -DskipTests --batch-mode -f scheduling-abstraction-layer/pom.xml"
cache:
paths:
- maven_repo/
before_script:
- echo '=========================================================================='
- echo $SCHEDULING_ABSTRACTION_LAYER_CLI
- echo '=========================================================================='
- mkdir -p $HOME/.m2
- echo '<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>'$CI_PROJECT_DIR'/maven_repo</localRepository>
</settings>' > $HOME/.m2/settings.xml
stages:
- build
- deploy
build:
stage: build
image: $MAVEN_IMAGE
script:
- $SCHEDULING_ABSTRACTION_LAYER_CLI clean install
artifacts:
paths:
- /builds/melodic/morphemic-preprocessor/maven_repo/org/activeeon/scheduling-abstraction-layer/
#todo add deploy jar to nexus
deploy:
stage: deploy
image: $MAVEN_IMAGE
only:
- master
- morphemic-rc1.5
script:
- $SCHEDULING_ABSTRACTION_LAYER_CLI clean install
Supports Markdown
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