Skip to content

Commit f29fca4

Browse files
committed
Add Rust to CI
1 parent 173db70 commit f29fca4

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

.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
@@ -307,6 +307,8 @@ def test_additional_rust_cli_dependencies_installed(
307307
binaries = os.listdir(prefix.path(
308308
helpers.environment_dir(rust.ENVIRONMENT_DIR, 'default'), 'bin',
309309
))
310+
# normalize for windows
311+
binaries = [os.path.splitext(binary)[0] for binary in binaries]
310312
assert 'shellharden' in binaries
311313

312314

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

0 commit comments

Comments
 (0)