Skip to content

Commit

Permalink
update mvn test
Browse files Browse the repository at this point in the history
  • Loading branch information
ShimiT committed Nov 3, 2019
1 parent d5eaa22 commit a433a23
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 11 deletions.
21 changes: 15 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@ FROM openjdk:8-jdk-slim

ARG MTA_USER_HOME=/home/mta
ARG MBT_VERSION=0.3.3

ARG GO_VERSION=1.13.4
ARG NODE_VERSION=v12.13.0
ARG MAVEN_VERSION=3.6.2

ENV PYTHON /usr/bin/python2.7
ENV M2_HOME=/opt/maven/apache-maven-${MAVEN_VERSION}

# go setup
ENV GOPATH /go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
ENV CGO_ENABLED=0
ENV GOOS=linux
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"

RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin

RUN apt-get update && \
apt-get install --yes --no-install-recommends curl git && \

Expand All @@ -23,6 +31,10 @@ RUN apt-get update && \
npm config set @sap:registry https://npm.sap.com --global && \
echo "[INFO] installing maven." && \

# installing Golang
curl -O https://storage.googleapis.com/golang/go${GO_VERSION}.linux-amd64.tar.gz && tar -xvf go${GO_VERSION}.linux-amd64.tar.gz && \
mv go /usr/local && \

# update maven home
M2_BASE="$(dirname ${M2_HOME})" && \
mkdir -p "${M2_BASE}" && \
Expand Down Expand Up @@ -58,12 +70,9 @@ RUN apt-get update && \
rm -rf /var/lib/apt/lists/*

ENV PATH=$PATH:./node_modules/.bin HOME=${MTA_USER_HOME}

WORKDIR /project

USER mta

RUN mbt -v
#RUN mbt -v && go version && mvn -v && node -v



Expand Down
Binary file not shown.
6 changes: 1 addition & 5 deletions integration/testdata/maven/mta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,4 @@ modules:
version: 1.0.0
build-parameters:
builder: maven
maven-opts:
command: [ clean, package ]
defines:
skipTests: true
build-result: "*.jar"
build-result: "target/*.jar"
7 changes: 7 additions & 0 deletions integration/testdata/maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,11 @@
<groupId>com.mycompany.app</groupId>
<artifactId>my-app</artifactId>
<version>1.0-SNAPSHOT</version>

<properties>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
</properties>


</project>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#Generated by Maven
#Sun Nov 03 13:27:05 UTC 2019
version=1.0-SNAPSHOT
groupId=com.mycompany.app
artifactId=my-app
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
com/sap/HelloWorld.class
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/project/src/main/java/com/sap/HelloWorld.java
Binary file not shown.

0 comments on commit a433a23

Please sign in to comment.