Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
7 changes: 4 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,10 @@ jobs:
- checkout
- run:
command: |
sudo apt-get update -y
sudo apt-get install -y clang-format
./travis-scripts/run-clang-format/run-clang-format.py -r torchvision/csrc
curl https://oss-clang-format.s3.us-east-2.amazonaws.com/linux64/clang-format-linux64 -o clang-format
chmod +x clang-format
sudo mv clang-format /opt/clang-format
./travis-scripts/run-clang-format/run-clang-format.py -r torchvision/csrc --clang-format-executable /opt/clang-format

binary_linux_wheel:
<<: *binary_common
Expand Down
7 changes: 4 additions & 3 deletions .circleci/config.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,10 @@ jobs:
- checkout
- run:
command: |
sudo apt-get update -y
sudo apt-get install -y clang-format
./travis-scripts/run-clang-format/run-clang-format.py -r torchvision/csrc
curl https://oss-clang-format.s3.us-east-2.amazonaws.com/linux64/clang-format-linux64 -o clang-format
chmod +x clang-format
sudo mv clang-format /opt/clang-format
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: do we need to move this to /opt/clang-format if we can specify a --clang-format-executable in the script?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not really necessary. I did not want to leave a binary in the root of the project. Can make a change if you want.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries, it was just for my information.

./travis-scripts/run-clang-format/run-clang-format.py -r torchvision/csrc --clang-format-executable /opt/clang-format

binary_linux_wheel:
<<: *binary_common
Expand Down