Skip to content

Commit 23fe0be

Browse files
committed
Add Rust to CI
1 parent b4edf2c commit 23fe0be

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ before_install:
2424
fi
2525
- git --version
2626
- './get-swift.sh && export PATH="/tmp/swift/usr/bin:$PATH"'
27+
- 'curl -sSf https://sh.rustup.rs | bash -s -- -y'
28+
- export PATH="$HOME/.cargo/bin:$PATH"
2729
after_success: coveralls
2830
cache:
2931
directories:

appveyor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ install:
1111
- pip install tox virtualenv --upgrade
1212
- "mkdir -p C:\\Temp"
1313
- "SET TMPDIR=C:\\Temp"
14+
- "curl -sSf https://sh.rustup.rs | bash -s -- -y"
15+
- "SET PATH=%USERPROFILE%\\.cargo\\bin;%PATH%"
1416

1517
# Not a C# project
1618
build: false

tests/repository_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,8 @@ def test_additional_rust_cli_dependencies_installed(
306306
binaries = os.listdir(prefix.path(
307307
helpers.environment_dir(rust.ENVIRONMENT_DIR, 'default'), 'bin',
308308
))
309+
# normalize for windows
310+
binaries = [os.path.splitext(binary)[0] for binary in binaries]
309311
assert 'shellharden' in binaries
310312

311313

@@ -324,6 +326,8 @@ def test_additional_rust_lib_dependencies_installed(
324326
binaries = os.listdir(prefix.path(
325327
helpers.environment_dir(rust.ENVIRONMENT_DIR, 'default'), 'bin',
326328
))
329+
# normalize for windows
330+
binaries = [os.path.splitext(binary)[0] for binary in binaries]
327331
assert 'rust-hello-world' in binaries
328332
assert 'shellharden' not in binaries
329333

0 commit comments

Comments
 (0)