Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

Synapse: Add step to check for unix file endings #81

Merged
merged 3 commits into from
Jul 28, 2020
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions synapse/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,17 @@ steps:
image: "python:3.6"
mount-buildkite-agent: false

- label: "\U0001F5A5 check unix line-endings"
command:
# Run 'file' command on each file, checking for Windows-style line terminators.
# grep returns exit code 1 when it doesn't find anything. We invert this as
# finding entries are a bad thing
- "find . -type f -path './.git/*' -prune -o -exec file '{}' ';' | (! grep 'CRLF line terminators')"
anoadragon453 marked this conversation as resolved.
Show resolved Hide resolved
plugins:
- docker#v3.0.1:
image: "python:3.6"
mount-buildkite-agent: false

- label: ":mypy: mypy"
command:
- "python -m pip install tox"
Expand Down