File: Dockerfile-precommit.in

package info (click to toggle)
fwupd 2.0.19-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 32,340 kB
  • sloc: ansic: 274,440; python: 11,468; xml: 9,432; sh: 1,625; makefile: 167; cpp: 19; asm: 11; javascript: 9
file content (18 lines) | stat: -rw-r--r-- 511 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM debian:testing
ENV SKIP=no-commit-to-branch
RUN apt update && apt install -yq --no-install-recommends \
        git \
        patch \
        pre-commit \
        shellcheck \
        shfmt \
        clang-format
RUN apt install wget -yq
RUN mkdir -p /tmp/repo && \
    cd /tmp/repo && \
    git init && \
    wget https://raw.githubusercontent.com/fwupd/fwupd/main/.pre-commit-config.yaml
RUN cd /tmp/repo && pre-commit run
RUN rm -rf /tmp/repo
WORKDIR /github/workspace
CMD ["./contrib/ci/precommit.sh"]