Skip to content

Commit 05ea4d7

Browse files
committed
Skip tests while building as that requires a local mongodb
1 parent 4002f72 commit 05ea4d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ ADD pom.xml LICENSE.md NOTICE.md README.md /usr/src/app/
1111

1212
# add src/ (which often change)
1313
ADD src /usr/src/app/src
14-
RUN mvn clean package && cp target/cwlvisualiser-*.jar /usr/lib/cwlvisualizer.jar && rm -rf target
14+
# Skip tests while building as that requires a local mongodb
15+
RUN mvn clean package -DskipTests && cp target/cwlvisualiser-*.jar /usr/lib/cwlvisualizer.jar && rm -rf target
1516

1617
# NOTE: ~/.m2/repository is a VOLUME and so will be deleted anyway
1718
# This also means that every docker build downloads all of it..

0 commit comments

Comments
 (0)