Add checkstyle CI
This commit is contained in:
parent
503a2dd176
commit
e48761402f
4 changed files with 245 additions and 0 deletions
16
checkstyle-runner/Dockerfile
Normal file
16
checkstyle-runner/Dockerfile
Normal 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"]
|
Loading…
Add table
Add a link
Reference in a new issue