82 lines
2.0 KiB
YAML
82 lines
2.0 KiB
YAML
language: python
|
|
|
|
dist: bionic
|
|
|
|
cache:
|
|
pip: true
|
|
cargo: true
|
|
|
|
matrix:
|
|
include:
|
|
- name: Python 3.5
|
|
python: "3.5"
|
|
- name: Python 3.6
|
|
python: "3.6"
|
|
- name: Python 3.7
|
|
python: "3.7"
|
|
- name: Python 3.8
|
|
python: "3.8"
|
|
- name: Python 3.9-dev
|
|
python: "3.9-dev"
|
|
- name: Minimum nightly
|
|
python: "3.7"
|
|
# Keep this synced up with build.rs and ensure that the nightly version does have clippy available
|
|
# https://static.rust-lang.org/dist/YYYY-MM-DD/clippy-nightly-x86_64-unknown-linux-gnu.tar.gz exists
|
|
env: TRAVIS_RUST_VERSION=nightly-2020-01-21
|
|
- name: PyPy3.5 7.0 # Tested via anaconda PyPy (since travis's PyPy version is too old)
|
|
python: "3.7"
|
|
env: FEATURES="pypy" PATH="$PATH:/opt/anaconda/envs/pypy3/bin"
|
|
allow_failures:
|
|
- python: 3.9-dev
|
|
|
|
env:
|
|
global:
|
|
- TRAVIS_RUST_VERSION=nightly
|
|
- RUST_BACKTRACE=1
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- libgoogle-perftools-dev
|
|
|
|
before_install:
|
|
- source ./ci/travis/setup.sh
|
|
- curl -L https://github.com/mozilla/grcov/releases/latest/download/grcov-linux-x86_64.tar.bz2 | tar jxf -
|
|
|
|
install:
|
|
- pip install setuptools-rust pytest pytest-benchmark tox
|
|
|
|
script:
|
|
- if ! [[ $FEATURES == *"pypy"* ]]; then export CARGO_INCREMENTAL=0; fi
|
|
# Options for grcov
|
|
- if ! [[ $FEATURES == *"pypy"* ]]; then export RUSTFLAGS="-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off"; fi
|
|
- ./ci/travis/test.sh
|
|
|
|
deploy:
|
|
- provider: script
|
|
skip_cleanup: true
|
|
script: ./ci/travis/cover.sh
|
|
on:
|
|
branch: master
|
|
repo: PyO3/pyo3
|
|
python: 3.6
|
|
condition: $TRAVIS_EVENT_TYPE != "cron"
|
|
- provider: script
|
|
skip_cleanup: true
|
|
script: ./ci/travis/guide.sh
|
|
on:
|
|
branch: master
|
|
repo: PyO3/pyo3
|
|
python: 3.6
|
|
condition: $TRAVIS_EVENT_TYPE != "cron"
|
|
- provider: script
|
|
skip_cleanup: true
|
|
script: ./ci/travis/guide.sh
|
|
on:
|
|
tags: true
|
|
repo: PyO3/pyo3
|
|
python: 3.6
|
|
|
|
notifications:
|
|
email: false
|