travis: Enable windows build.

master
Damir Jelić 2020-01-06 18:37:43 +01:00
parent 7b678f57c5
commit ef2f35b364
1 changed files with 20 additions and 0 deletions

View File

@ -59,6 +59,18 @@ jobs:
- cp target/debug/libtantivy.dylib tantivy/tantivy.so
script:
- python3 -m pytest -v
- os: windows
language: rust
install:
- choco install python --version 3.8.0
- choco install python --version 3.7.5 --side-by-side
- python -m pip install --upgrade pip
- pip3 install -U maturin pytest
- maturin list-python
- cargo build
- dir target/debug
- cp target/debug/tantivy.dll tantivy/tantivy.pyd
env: PATH=/c/Python38:/c/Python37:/c/Python38/Scripts:/c/Python37/Scripts:$PATH
- language: rust
name: 'rust linters'
install: rustup component add clippy rustfmt
@ -87,3 +99,11 @@ deploy:
tags: true
condition: $TRAVIS_OS_NAME = osx
repo: tantivy-search/tantivy-py
# Deploy for windows using maturin directly
- provider: script
script: maturin publish --username __token__ --password $MATURIN_PASSWORD --no-sdist
on:
tags: true
condition: $TRAVIS_OS_NAME = windows
repo: tantivy-search/tantivy-py