diff --git a/.travis.yml b/.travis.yml index 243d514..98356b5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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