travis: Run the lint stage first and more cleanup.

master
Damir Jelić 2020-01-25 10:42:39 +01:00
parent 74f8892b67
commit 0e14d03333
1 changed files with 4 additions and 8 deletions

View File

@ -1,8 +1,9 @@
os: linux
language: rust language: rust
stages: stages:
- test
- lint - lint
- test
cache: cache:
pip: true pip: true
@ -33,8 +34,7 @@ jobs:
- os: linux - os: linux
dist: bionic dist: bionic
language: python language: python
python: python: 3.8
- '3.8'
services: services:
- docker - docker
before_install: before_install:
@ -47,7 +47,6 @@ jobs:
- os: osx - os: osx
osx_image: xcode11.3 osx_image: xcode11.3
language: rust
before_install: before_install:
- pyenv install --list - pyenv install --list
- pyenv install 3.8.0 - pyenv install 3.8.0
@ -61,7 +60,6 @@ jobs:
env: PATH=/Users/travis/.pyenv/versions/3.8.0/bin:$PATH env: PATH=/Users/travis/.pyenv/versions/3.8.0/bin:$PATH
- os: windows - os: windows
language: rust
before_install: before_install:
- choco install python --version 3.8.0 - choco install python --version 3.8.0
- choco install python --version 3.7.5 --side-by-side - choco install python --version 3.7.5 --side-by-side
@ -73,8 +71,7 @@ jobs:
- cp target/debug/tantivy.dll tantivy/tantivy.pyd - cp target/debug/tantivy.dll tantivy/tantivy.pyd
env: PATH=/c/Python38:/c/Python37:/c/Python38/Scripts:/c/Python37/Scripts:$PATH env: PATH=/c/Python38:/c/Python37:/c/Python38/Scripts:/c/Python37/Scripts:$PATH
- language: rust - name: 'rust linters'
name: 'rust linters'
install: rustup component add clippy rustfmt install: rustup component add clippy rustfmt
script: script:
- cargo clippy - cargo clippy
@ -89,7 +86,6 @@ deploy:
tags: true tags: true
condition: $TRAVIS_OS_NAME = linux condition: $TRAVIS_OS_NAME = linux
repo: tantivy-search/tantivy-py repo: tantivy-search/tantivy-py
python: 3.8
# Deploy for macos using maturin directly # Deploy for macos using maturin directly
- provider: script - provider: script