134c129edc
* Add failing test * Complete formatting * Fix commands execution * Fix commands execution for Linux * Extract virtual environment creation/removing into separate functions * Complete error messages * Complete examples building * Use 'venv' independent path * Call script by dotted path instead of 'source' call * Add Travis CI script * Rename variable: 'exec_prefix' -> 'base_prefix' * Add AppVeyor script * Remove Rust test * Complete shell script mode * Complete path to powershell script * Use 'pushd'/'popd' instead of 'cd' * Complete powershell script * Complete shell script * Fix setup * Use 'tox-venv' plugin for 'venv' stdlib module support * Remove additional 'venv' testing * Use global environment instead of calling 'set' * Use 'tox' for AppVeyor, extract commands into 'setup' & 'test' scripts * Add updating of 'pip' & 'setuptools' * Add moving in/back from examples directories * Complete 'pip'/'setuptools' updating * Complete requirements * Complete 'word-count' example configuration * Simplify 'setup' script * Complete 'rustapi_module' example tests * Revert formatting * Complete examples configuration * Remove redundant annotations * Add entry in changelog
85 lines
1.6 KiB
YAML
85 lines
1.6 KiB
YAML
language: python
|
|
|
|
dist: xenial
|
|
|
|
cache:
|
|
pip: true
|
|
cargo: true
|
|
directories:
|
|
- "$HOME/kcov"
|
|
|
|
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-dev
|
|
python: "3.8-dev"
|
|
- name: Minimum nightly
|
|
python: "3.7"
|
|
# Keep this synced up with build.rs
|
|
env: TRAVIS_RUST_VERSION=nightly-2019-02-07
|
|
# Tested via anaconda PyPy (since travis's PyPy version is too old)
|
|
- name: PyPy3.5 7.0
|
|
python: "3.7"
|
|
env: FEATURES="pypy" PATH="$PATH:/opt/anaconda/envs/pypy3/bin"
|
|
allow_failures:
|
|
- python: "3.8-dev"
|
|
|
|
env:
|
|
global:
|
|
- TRAVIS_RUST_VERSION=nightly
|
|
- RUST_BACKTRACE=1
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- libcurl4-openssl-dev
|
|
- libelf-dev
|
|
- libdw-dev
|
|
- cmake
|
|
- gcc
|
|
- binutils-dev
|
|
- libiberty-dev
|
|
|
|
before_install:
|
|
- source ./ci/travis/setup.sh
|
|
|
|
install:
|
|
- pip install setuptools-rust pytest pytest-benchmark tox tox-venv
|
|
|
|
script:
|
|
- ./ci/travis/test.sh
|
|
|
|
after_success:
|
|
- ./ci/travis/cover.sh
|
|
|
|
deploy:
|
|
- provider: script
|
|
skip_cleanup: true
|
|
script: ./ci/travis/cover.sh
|
|
on:
|
|
branch: master
|
|
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
|