Multiple build matrix on Appveyor (#63)
This commit is contained in:
parent
0e2afb7b8b
commit
d78692017e
24
appveyor.yml
24
appveyor.yml
|
@ -1,20 +1,28 @@
|
||||||
version: 0.2.{build}
|
version: 0.2.{build}
|
||||||
environment:
|
environment:
|
||||||
TARGET: x86_64-pc-windows-msvc
|
TARGET: x86_64-pc-windows-msvc
|
||||||
|
matrix:
|
||||||
|
- PYTHON: "C:/Python27-x64"
|
||||||
|
FEATURES: python2
|
||||||
|
- PYTHON: "C:/Python35-x64"
|
||||||
|
FEATURES: python3
|
||||||
|
- PYTHON: "C:/Python36-x64"
|
||||||
|
FEATURES: python3
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
|
||||||
|
- "python --version"
|
||||||
- ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-nightly-${env:TARGET}.msi"
|
- 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
|
- 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
|
- call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64
|
||||||
- set PATH=%PATH%;%CD%/rust-nightly-%TARGET%/bin
|
- set PATH=%PATH%;%CD%/rust-nightly-%TARGET%/bin
|
||||||
- SET PATH=%PYTHONPATH%;%PATH%
|
|
||||||
- rustc -V
|
- rustc -V
|
||||||
- cargo -V
|
- cargo -V
|
||||||
- python --version
|
|
||||||
build_script:
|
build_script:
|
||||||
- set PATH=C:\Python27-x64;%PATH%&& cargo build --verbose --features python2
|
- cargo build --verbose --features %FEATURES%
|
||||||
- set PATH=C:\Python35-x64;%PATH%&& cargo build --verbose --features python3
|
|
||||||
- set PATH=C:\Python36-x64;%PATH%&& cargo build --verbose --features python3
|
|
||||||
test_script:
|
test_script:
|
||||||
- set PATH=C:\Python27-x64;%PATH%&& cargo test --verbose --features python2
|
- cargo test --verbose --features %FEATURES%
|
||||||
- set PATH=C:\Python35-x64;%PATH%&& cargo test --verbose --features python3
|
- pip install setuptools-rust pytest pytest-benchmark
|
||||||
- set PATH=C:\Python36-x64;%PATH%&& cargo test --verbose --features python3
|
- cd examples/word-count && python setup.py install && pytest -v tests
|
||||||
|
|
Loading…
Reference in a new issue