From ef2f35b364ceace88b202f93a6c5b89d2347173c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Mon, 6 Jan 2020 18:37:43 +0100 Subject: [PATCH] travis: Enable windows build. --- .travis.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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