Add Rust to CI

This commit is contained in:
Chris Kuehl
2018-05-22 20:20:46 -07:00
parent b4edf2ce50
commit 23fe0be286
3 changed files with 8 additions and 0 deletions

View File

@@ -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:

View File

@@ -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

View File

@@ -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