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 - cp target/debug/libtantivy.dylib tantivy/tantivy.so
script: script:
- python3 -m pytest -v - 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 - language: rust
name: 'rust linters' name: 'rust linters'
install: rustup component add clippy rustfmt install: rustup component add clippy rustfmt
@ -87,3 +99,11 @@ deploy:
tags: true tags: true
condition: $TRAVIS_OS_NAME = osx condition: $TRAVIS_OS_NAME = osx
repo: tantivy-search/tantivy-py 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