2017-07-27 01:40:32 +00:00
|
|
|
version: 0.2.{build}
|
|
|
|
environment:
|
|
|
|
TARGET: x86_64-pc-windows-msvc
|
2017-07-29 05:45:03 +00:00
|
|
|
matrix:
|
|
|
|
- PYTHON: "C:/Python35-x64"
|
|
|
|
- PYTHON: "C:/Python36-x64"
|
|
|
|
|
2017-07-27 01:40:32 +00:00
|
|
|
install:
|
2017-07-29 05:45:03 +00:00
|
|
|
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
|
|
|
|
- "python --version"
|
2017-07-27 01:40:32 +00:00
|
|
|
- ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-nightly-${env:TARGET}.msi"
|
|
|
|
- start /wait msiexec /i rust-nightly-%TARGET%.msi INSTALLDIR="%CD%\rust-nightly-%TARGET%" /quiet /qn /norestart
|
|
|
|
- call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64
|
|
|
|
- set PATH=%PATH%;%CD%/rust-nightly-%TARGET%/bin
|
|
|
|
- rustc -V
|
|
|
|
- cargo -V
|
2018-03-15 10:47:37 +00:00
|
|
|
- set RUST_BACKTRACE=1
|
2017-07-29 05:45:03 +00:00
|
|
|
|
2017-07-27 01:42:30 +00:00
|
|
|
build_script:
|
2019-03-22 13:07:33 +00:00
|
|
|
- cargo build --verbose
|
2017-07-29 05:45:03 +00:00
|
|
|
|
2017-07-27 01:40:32 +00:00
|
|
|
test_script:
|
2019-03-22 13:07:33 +00:00
|
|
|
- cargo test --verbose
|
2017-07-29 05:45:03 +00:00
|
|
|
- pip install setuptools-rust pytest pytest-benchmark
|
|
|
|
- cd examples/word-count && python setup.py install && pytest -v tests
|