Commit a6e1b275 authored by Ben Boeckel's avatar Ben Boeckel Committed by Kitware Robot
Browse files

Merge topic 'ghostflow-cli-support'

7b9f15ff ghostflow: add a Dockerfile for running ghostflow
8f9b0fce

 ghostflow: add configuration

Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: David Thompson's avatarDavid Thompson <david.thompson@kitware.com>
Merge-request: !2032
parents 7a89e2a2 7b9f15ff
reformat:
- clang-format
- autopep8
formatters:
clang-format:
formatter: /root/source-formatters/src/c/format.clang-format
config_files:
- ".clang-format"
- "**/.clang-format"
timeout: 5
autopep8:
formatter: /root/source-formatters/src/python/format.autopep8
config_files:
- "tox.ini"
- "setup.cfg"
timeout: 5
checks:
- kind: "check_end_of_line"
- kind: "check_executable_permissions"
config:
extensions: [".bat", ".cmd", ".exe", ".com"]
- kind: "check_size"
- kind: "check_whitespace"
- kind: "commit_subject"
config:
check_wip: true
check_rebase_commands: true
min_length: 8
max_length: 78
- kind: "invalid_paths"
config:
enforce_windows_rules: true
- kind: "invalid_utf8"
- kind: "lfs_pointer"
- kind: "reject_conflict_paths"
- kind: "reject_separate_root"
- kind: "reject_symlinks"
- kind: "submodule_available"
config:
require_first_parent: true
- kind: "submodule_rewind"
- kind: "submodule_watch"
config:
reject_additions: true
reject_removals: true
- kind: "valid_name"
config:
full_name_policy: "preferred"
whitelisted_domains:
- gmail.com
- kitware.com
- users.noreply.github.com
- kind: "formatter"
config:
kind: "clang-format"
- kind: "formatter"
config:
kind: "autopep8"
- kind: "changelog/topic"
config:
style: "directory"
path: "doc/release/notes"
extension: "md"
required: false
FROM rust:latest AS build
MAINTAINER Ben Boeckel <ben.boeckel@kitware.com>
RUN cargo install \
--git https://gitlab.kitware.com/utils/rust-ghostflow \
--branch master \
--no-default-features \
-- ghostflow-cli
FROM debian:stretch
MAINTAINER Ben Boeckel <ben.boeckel@kitware.com>
RUN echo "deb http://deb.debian.org/debian stretch-backports main" > /etc/apt/sources.list.d/stretch-backports.list
RUN apt-get update && \
apt-get install -y --no-install-recommends \
python3-pip python3-setuptools \
clang-format-3.8 \
bind9-host ca-certificates && \
apt-get install -y --no-install-recommends \
-t stretch-backports \
git-core git-lfs && \
apt-get clean
RUN pip3 install autopep8
RUN git config --global user.name "Ghostflow Container" && \
git config --global user.email "ghostflow@nowhere"
RUN git clone \
https://gitlab.kitware.com/utils/source-formatters.git \
/root/source-formatters
COPY --from=build /usr/local/cargo/bin/ghostflow-cli /usr/bin/ghostflow-cli
VOLUME /repo
WORKDIR /repo
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment