mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-15 05:20:20 -06:00
Add Rust to CI
This commit is contained in:
@@ -24,6 +24,8 @@ before_install:
|
||||
fi
|
||||
- git --version
|
||||
- './get-swift.sh && export PATH="/tmp/swift/usr/bin:$PATH"'
|
||||
- 'curl -sSf https://sh.rustup.rs | bash -s -- -y'
|
||||
- export PATH="$HOME/.cargo/bin:$PATH"
|
||||
after_success: coveralls
|
||||
cache:
|
||||
directories:
|
||||
|
||||
@@ -11,6 +11,8 @@ install:
|
||||
- pip install tox virtualenv --upgrade
|
||||
- "mkdir -p C:\\Temp"
|
||||
- "SET TMPDIR=C:\\Temp"
|
||||
- "curl -sSf https://sh.rustup.rs | bash -s -- -y"
|
||||
- "SET PATH=%USERPROFILE%\\.cargo\\bin;%PATH%"
|
||||
|
||||
# Not a C# project
|
||||
build: false
|
||||
|
||||
@@ -306,6 +306,8 @@ def test_additional_rust_cli_dependencies_installed(
|
||||
binaries = os.listdir(prefix.path(
|
||||
helpers.environment_dir(rust.ENVIRONMENT_DIR, 'default'), 'bin',
|
||||
))
|
||||
# normalize for windows
|
||||
binaries = [os.path.splitext(binary)[0] for binary in binaries]
|
||||
assert 'shellharden' in binaries
|
||||
|
||||
|
||||
@@ -324,6 +326,8 @@ def test_additional_rust_lib_dependencies_installed(
|
||||
binaries = os.listdir(prefix.path(
|
||||
helpers.environment_dir(rust.ENVIRONMENT_DIR, 'default'), 'bin',
|
||||
))
|
||||
# normalize for windows
|
||||
binaries = [os.path.splitext(binary)[0] for binary in binaries]
|
||||
assert 'rust-hello-world' in binaries
|
||||
assert 'shellharden' not in binaries
|
||||
|
||||
|
||||
Reference in New Issue
Block a user