Add checkstyle CI

This commit is contained in:
Tim Schubert 2018-03-19 12:55:21 +01:00
parent 503a2dd176
commit e48761402f
4 changed files with 245 additions and 0 deletions

View file

@ -0,0 +1,16 @@
FROM java:8-jdk
WORKDIR /checkstyle
ADD tubs_checks.xml /checkstyle
ENV CHECKSTYLE_VERSION=7.6.1
RUN curl -sLO https://sourceforge.net/projects/checkstyle/files/checkstyle/${CHECKSTYLE_VERSION}/checkstyle-${CHECKSTYLE_VERSION}-all.jar && mv checkstyle-${CHECKSTYLE_VERSION}-all.jar checkstyle.jar
# gitlab runner does not use entrypoint like this
# https://docs.gitlab.com/runner/executors/docker.html#the-entrypoint
#ENTRYPOINT ["java","-jar","checkstyle.jar","-c","tubs_checks.xml"]
# default option, use file names to check
#CMD ["-v"]