2020-08-16 11:59:16 +00:00
|
|
|
# docker build -t yandex/clickhouse-style-test .
|
2020-08-14 13:09:23 +00:00
|
|
|
FROM ubuntu:20.04
|
|
|
|
|
2021-01-29 19:22:38 +00:00
|
|
|
RUN apt-get update && env DEBIAN_FRONTEND=noninteractive apt-get install --yes shellcheck libxml2-utils git python3-pip pylint && pip3 install codespell
|
2020-08-14 13:09:23 +00:00
|
|
|
|
|
|
|
|
2021-01-29 19:30:13 +00:00
|
|
|
# For |& syntax
|
|
|
|
SHELL ["bash", "-c"]
|
|
|
|
|
2020-12-24 10:11:07 +00:00
|
|
|
CMD cd /ClickHouse/utils/check-style && \
|
2021-01-29 19:30:13 +00:00
|
|
|
./check-style -n |& tee /test_output/style_output.txt && \
|
|
|
|
./check-typos |& tee /test_output/typos_output.txt && \
|
|
|
|
./check-whitespaces -n |& tee /test_output/whitespaces_output.txt && \
|
|
|
|
./check-duplicate-includes.sh |& tee /test_output/duplicate_output.txt && \
|
|
|
|
./shellcheck-run.sh |& tee /test_output/shellcheck_output.txt && \
|
|
|
|
true
|