Merge 44b9941c3f into e38696a0ac
commit
b6eec2f3c7
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
CONTAINER_ENGINE=${CONTAINER_ENGINE:-docker}
|
||||
|
||||
${CONTAINER_ENGINE} build --file ./testing.Dockerfile --tag test .
|
||||
${CONTAINER_ENGINE} run --rm --interactive --tty --volume $(pwd -P):$(pwd) --workdir $(pwd) test bash ./lint_clean_files.sh
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
FROM fedora
|
||||
RUN yum install --assumeyes \
|
||||
ShellCheck \
|
||||
python-devel \
|
||||
python \
|
||||
golang \
|
||||
pip \
|
||||
&& \
|
||||
yum clean all
|
||||
RUN pip3 install pre-commit
|
||||
RUN GO111MODULE=on go get mvdan.cc/sh/v3/cmd/shfmt &&\
|
||||
ln -s ~/go/bin/shfmt /usr/local/bin
|
||||
Loading…
Reference in New Issue