Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Torchaudio
Commits
04733c05
"docs/vscode:/vscode.git/clone" did not exist on "65238ce065261bb874fb819bb0a2f8a72f02e41c"
Unverified
Commit
04733c05
authored
Oct 22, 2020
by
Vasilis Vryniotis
Committed by
GitHub
Oct 22, 2020
Browse files
Fixing clang-format version to what PyTorch uses. (#981)
parent
ba1698ba
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
.circleci/torchscript_bc_test/common.sh
.circleci/torchscript_bc_test/common.sh
+0
-3
.circleci/unittest/linux/scripts/run_style_checks.sh
.circleci/unittest/linux/scripts/run_style_checks.sh
+2
-2
.circleci/unittest/linux/scripts/setup_env.sh
.circleci/unittest/linux/scripts/setup_env.sh
+3
-1
No files found.
.circleci/torchscript_bc_test/common.sh
View file @
04733c05
...
...
@@ -59,9 +59,6 @@ install_release() {
install_build_dependencies
()
{
printf
"* Installing torchaudio dependencies except PyTorch - (Python: %s)
\n
"
"
$1
"
conda
env
update
-q
--file
"
${
_this_dir
}
/environment.yml"
--prune
if
[
"
${
_os
}
"
==
Linux
]
;
then
pip
install
clang-format
fi
}
build_master
()
{
...
...
.circleci/unittest/linux/scripts/run_style_checks.sh
View file @
04733c05
...
...
@@ -20,9 +20,9 @@ if [ "${status}" -ne 0 ]; then
fi
printf
"
\x
1b[34mRunning clang-format: "
clang-format
--version
./
clang-format
--version
printf
"
\x
1b[0m
\n
"
git-clang-format origin/master
git-clang-format
--binary
./clang-format
origin/master
git diff
--exit-code
status
=
$?
exit_status
=
"
$((
exit_status+status
))
"
...
...
.circleci/unittest/linux/scripts/setup_env.sh
View file @
04733c05
...
...
@@ -38,7 +38,9 @@ conda activate "${env_dir}"
printf
"* Installing dependencies (except PyTorch)
\n
"
conda
env
update
--file
"
${
this_dir
}
/environment.yml"
--prune
if
[
"
${
os
}
"
==
Linux
]
;
then
pip
install
clang-format
clangformat_path
=
"
${
root_dir
}
/clang-format"
curl https://oss-clang-format.s3.us-east-2.amazonaws.com/linux64/clang-format-linux64
-o
"
${
clangformat_path
}
"
chmod
+x
"
${
clangformat_path
}
"
fi
# 4. Buld codecs
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment