2015-06-28 19:46:24 +00:00
|
|
|
language: python
|
2018-02-21 18:06:48 +00:00
|
|
|
|
2020-03-17 04:42:13 +00:00
|
|
|
dist: bionic
|
2018-11-23 19:49:12 +00:00
|
|
|
|
2018-05-04 16:20:28 +00:00
|
|
|
cache:
|
|
|
|
pip: true
|
2018-08-11 15:35:03 +00:00
|
|
|
cargo: true
|
2018-02-21 18:06:48 +00:00
|
|
|
|
2018-05-04 16:20:28 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
2019-02-13 11:28:41 +00:00
|
|
|
- name: Python 3.5
|
|
|
|
python: "3.5"
|
|
|
|
- name: Python 3.6
|
|
|
|
python: "3.6"
|
|
|
|
- name: Python 3.7
|
|
|
|
python: "3.7"
|
2020-03-16 12:55:35 +00:00
|
|
|
- name: Python 3.8
|
|
|
|
python: "3.8"
|
|
|
|
- name: Python 3.9-dev
|
|
|
|
python: "3.9-dev"
|
2019-02-13 11:28:41 +00:00
|
|
|
- name: Minimum nightly
|
|
|
|
python: "3.7"
|
2019-08-17 12:10:35 +00:00
|
|
|
# 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
|
2020-02-10 01:51:37 +00:00
|
|
|
env: TRAVIS_RUST_VERSION=nightly-2020-01-21
|
2019-08-17 12:10:35 +00:00
|
|
|
- name: PyPy3.5 7.0 # Tested via anaconda PyPy (since travis's PyPy version is too old)
|
2019-04-23 11:18:42 +00:00
|
|
|
python: "3.7"
|
|
|
|
env: FEATURES="pypy" PATH="$PATH:/opt/anaconda/envs/pypy3/bin"
|
2020-03-16 12:55:35 +00:00
|
|
|
allow_failures:
|
|
|
|
- python: 3.9-dev
|
2020-03-17 04:42:13 +00:00
|
|
|
|
2015-04-19 03:21:28 +00:00
|
|
|
env:
|
2017-11-27 19:04:49 +00:00
|
|
|
global:
|
2019-02-13 11:28:41 +00:00
|
|
|
- TRAVIS_RUST_VERSION=nightly
|
2018-03-13 22:05:47 +00:00
|
|
|
- RUST_BACKTRACE=1
|
2017-06-15 16:11:19 +00:00
|
|
|
|
2017-11-27 19:04:49 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2020-03-29 08:40:45 +00:00
|
|
|
- libgoogle-perftools-dev
|
2017-11-27 19:04:49 +00:00
|
|
|
|
2018-05-04 16:20:28 +00:00
|
|
|
before_install:
|
|
|
|
- source ./ci/travis/setup.sh
|
2019-07-23 19:23:09 +00:00
|
|
|
- curl -L https://github.com/mozilla/grcov/releases/latest/download/grcov-linux-x86_64.tar.bz2 | tar jxf -
|
2017-06-15 16:11:19 +00:00
|
|
|
|
2015-06-28 19:46:24 +00:00
|
|
|
install:
|
2019-07-09 07:47:08 +00:00
|
|
|
- pip install setuptools-rust pytest pytest-benchmark tox
|
2018-04-03 17:32:10 +00:00
|
|
|
|
2018-05-04 16:20:28 +00:00
|
|
|
script:
|
2019-07-23 19:23:09 +00:00
|
|
|
# Options for grcov
|
2019-08-11 12:26:56 +00:00
|
|
|
- if ! [[ $FEATURES == *"pypy"* ]]; then export CARGO_INCREMENTAL=0; fi
|
|
|
|
- if ! [[ $FEATURES == *"pypy"* ]]; then export RUSTFLAGS="-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zno-landing-pads"; fi
|
2018-05-23 14:38:44 +00:00
|
|
|
- ./ci/travis/test.sh
|
2018-02-14 17:45:08 +00:00
|
|
|
|
2018-05-04 16:20:28 +00:00
|
|
|
deploy:
|
2019-03-14 23:03:53 +00:00
|
|
|
- provider: script
|
|
|
|
skip_cleanup: true
|
2020-01-12 12:37:03 +00:00
|
|
|
script: ./ci/travis/cover.sh
|
2019-03-14 23:03:53 +00:00
|
|
|
on:
|
|
|
|
branch: master
|
2020-01-13 22:30:49 +00:00
|
|
|
repo: PyO3/pyo3
|
|
|
|
python: 3.6
|
2019-03-14 23:03:53 +00:00
|
|
|
condition: $TRAVIS_EVENT_TYPE != "cron"
|
2018-05-04 16:20:28 +00:00
|
|
|
- provider: script
|
|
|
|
skip_cleanup: true
|
|
|
|
script: ./ci/travis/guide.sh
|
|
|
|
on:
|
|
|
|
branch: master
|
2018-05-04 16:34:05 +00:00
|
|
|
repo: PyO3/pyo3
|
2018-05-04 16:20:28 +00:00
|
|
|
python: 3.6
|
2018-06-12 12:36:34 +00:00
|
|
|
condition: $TRAVIS_EVENT_TYPE != "cron"
|
2018-07-18 21:17:50 +00:00
|
|
|
- provider: script
|
|
|
|
skip_cleanup: true
|
|
|
|
script: ./ci/travis/guide.sh
|
|
|
|
on:
|
|
|
|
tags: true
|
|
|
|
repo: PyO3/pyo3
|
|
|
|
python: 3.6
|
2018-06-14 14:29:22 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|