v0.0.1
This commit is contained in:
parent
6f66f62601
commit
22e1be4fbc
3 changed files with 25 additions and 0 deletions
|
@ -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
|
15
README.md
15
README.md
|
@ -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
2
checkstyle.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
java -jar /checkstyle.jar -c "@"
|
Loading…
Reference in a new issue