From 7ce2952ea783d707c5eaf45ca6940fcb8a8a3a4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Thu, 8 Aug 2019 14:22:35 +0200 Subject: [PATCH] tantivy: Add an initial travis file. --- .travis.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..d948379 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,31 @@ +language: python +dist: xenial +python: + - '3.6' + - '3.7' +stages: + - test + - lint + - wheels + +matrix: + include: + - python: '3.7' + name: 'rust linters' + install: rustup component add clippy rustfmt + script: + - cargo clippy + - cargo fmt -- --check + stage: lint + +cache: + pip: true + directories: + - $HOME/.cargo + - $TRAVIS_BUILD_DIR/target + +before_install: + - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly + +install: pip install -U tox pyo3-pack tox-pyo3 tox-travis +script: tox