This commit is contained in:
Ignacio Canó 2017-07-06 19:03:20 -04:00
parent 6f66f62601
commit 22e1be4fbc
3 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,8 @@
FROM openjdk:7
RUN apt-get update -yqq && apt-get install -yqq curl
RUN curl -L https://downloads.sourceforge.net/project/checkstyle/checkstyle/8.0/checkstyle-8.0-all.jar > /checkstyle.jar
ADD checkstyle.sh /usr/bin/checkstyle
RUN chmod +x /usr/bin/checkstyle

View file

@ -0,0 +1,15 @@
# checkstyle-docker
Docker image for running checkstyle
## How to use (Sample gitlab-ci)
```
stages:
- test
test:
image: solucionesgbh/checkstyle
script:
- checkstyle - <relative path to check xml> <relative path to code>
```

2
checkstyle.sh Normal file
View file

@ -0,0 +1,2 @@
#!/bin/bash
java -jar /checkstyle.jar -c "@"