Commit 5c0516f5 authored by Mihai Nita's avatar Mihai Nita

Bringing xliff-toolkit and Okapi closer

parent ab78b100
......@@ -9,21 +9,22 @@
</servers>
<profiles>
<profile>
<id>SUREFIRE-1588</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<argLine>-Djdk.net.URLClassPath.disableClassPathURLCheck=true</argLine>
</properties>
</profile>
<profile>
<id>sign_and_deploy</id>
<properties>
<gpg.executable>gpg</gpg.executable>
<gpg.passphrase>${GPG_PASSPHRASE}</gpg.passphrase>
</properties>
<repositories>
<repository>
<id>sonatype</id>
<name>Snapshots Repository for Downloads</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>
</settings>
FROM openjdk:8u171-jdk-slim
RUN apt-get -q update --yes \
&& apt-get -q install --yes --no-install-recommends git maven ant curl gpg \
&& rm -rf /var/lib/apt/lists/*
RUN echo ============== && \
java -version && \
javac -version && \
mvn -version && \
ant -version && \
git --version && \
gpg --version && \
curl --version
WORKDIR /root
ENTRYPOINT /bin/bash
......@@ -30,6 +30,8 @@ stages:
variables:
CI_GITLAB_PATH: "ci/gitlab"
CI_SCRIPTS_PATH: "${CI_GITLAB_PATH}/scripts"
DOCKER_DRIVER: "overlay2"
GIT_DEPTH: "3"
MAVEN_CLI_OPTS: "--settings ${CI_GITLAB_PATH}/.m2/settings.xml --batch-mode --errors --show-version"
OPENSSL_CLI_OPTS: "enc -aes-256-cbc -K ${OPENSSL_ENC_KEY} -iv ${OPENSSL_ENC_IV}"
GPG_CONF: ".gnupg/gpg.conf"
......@@ -39,7 +41,7 @@ variables:
SNAPSHOTS_BRANCH: "dev"
# CI_DEBUG_TRACE: "true" # WARNING: all secret variables will be exposed to a job output!
image: "maven:3.5.3-jdk-8"
image: registry.gitlab.com/okapiframework/okapi
before_script:
- ${CI_SCRIPTS_PATH}/before-job
......@@ -51,7 +53,8 @@ verification:
cache:
paths:
- ${HOME}/.m2/repository/
- ${HOME}/target/
before_script:
- ${CI_SCRIPTS_PATH}/before-job
script:
- mvn verify ${MAVEN_CLI_OPTS}
- touch ${CI_GITLAB_PATH}/${CI_JOB_NAME}-passed
......@@ -61,11 +64,12 @@ verification:
cache:
paths:
- ${HOME}/.m2/repository/
- ${HOME}/target/
policy: pull
script:
before_script:
- ${CI_SCRIPTS_PATH}/before-job
- ${CI_SCRIPTS_PATH}/gpg-import
- mvn deploy ${MAVEN_CLI_OPTS} -DskipITs -Dmaven.test.skip=true --activate-profiles sign_and_deploy,release #--quiet
script:
- mvn deploy ${MAVEN_CLI_OPTS} -DskipITs --Dmaven.test.skip=true --activate-profiles sign_and_deploy,release #--quiet
- touch ${CI_GITLAB_PATH}/${CI_JOB_NAME}-passed
snapshot:
......
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