pyo3/.travis.yml

85 lines
1.6 KiB
YAML
Raw Normal View History

2015-06-28 19:46:24 +00:00
language: python
2018-02-21 18:06:48 +00:00
dist: xenial
cache:
pip: true
2018-08-11 15:35:03 +00:00
cargo: true
directories:
- "$HOME/kcov"
2018-02-21 18:06:48 +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"
- name: Python 3.8-dev
python: "3.8-dev"
- name: Minimum nightly
python: "3.7"
# Keep this synced up with build.rs
2019-03-22 13:07:33 +00:00
env: TRAVIS_RUST_VERSION=nightly-2019-02-07
Support rust extensions for PyPy via cpyext (#393) * wip * removed stuff * removed another change * implemented minimum amouth of ifdefs to make pypy3 hello world to compile * implemented minimum amount of ifdefs to make pypy3 hello world to compile * hacking on build.rs * compiler is happy! * few todos remain * extracted build logic to seperate module * added pypy test * finally fixed pypy structs * removed some todos * test should now be machine independent * fixed all pypy3 symbols * added pypy feature * removed `is_pypy` * added pypy2 declerations also * fix for cpython2 * improved libpypy detection * added all pypy2 macros * fixed errneous type * more fixes * fix python2 string macros * modsupport symbol * fix * fixed and added many symbols * fixes * remove dup * remove mac-specific config * fix all name mangling macros * unite imports * missing symbol * fix pybool * implemented another missing symbol * it works * fix merge conflict * uncomment non default features * cargo.toml * Cargo fmt * small merge fixes * use newer build version * whoops * fix build script * more build hacks * some random hiccups * small fixes * it builds! * it builds and runs * revert everything in FFI2 * revert changes to ffi2 * check python3 for pypy * tiny fix * revert ffi2 for real * revert weird formatting changes * bring back missing feature * tiny error * fix py3.7 issue * add pypy3.5 6.0 to travis * remove dbg! * another tiny fix * removed some useless annotations, and fixed inlines annotations * removed `pretty_assertions` * removed pypy feature from cargo.toml * fix for Py_CompileStringFlags * tox runs word_count! * __dict__ changes are not supported for PyPy * fix 3.7 and copy comment * fix test script :flushed: * transfer ownership of strings to cpython when possible * remove cstr! macro * added missing nuls * as_bytes() -> b’’ string * symbol removed by mistake * properly shim pypy date time API, some tests are passing! * extension_module tests now not crashing! (some still skipped) * maybe travis has new pypy version? * small error on windows (build script) * fix conditional compilation * try to make tests run on travis.. * invert condition * added pytest-faulthandler to facilitate debugging * correctly name dir * use full paths * say —yes to conda * fix * syntax error * change PATH * fixed a terrible bug with PyTypeObjects in PyPy * fix PyTypeObject defs * re-enabled tests! * all tests are passing! * make the fix ad-hoc for now * removed build module * revert changes that cause an additional GC bug * prevented buggy test from failing pypy * removed unused comment * don’t run coverage on pypy * removed some erroneous symbols from function calls which are actually macros * restore py37 pyunicode missing def * use only `link_name` in PyPy specific declarations * only setup PyPy when testing against PyPy * annotation that was eaten during merge * remove change to comment by mistake + unnecessary changes to cargo.toml * xfail dates test only on pypy * changed comment to be a little more helpful * cleaned up some warnings * Update src/ffi3/ceval.rs Co-Authored-By: omerbenamram <omerbenamram@gmail.com> * @konstin PR notes * rustfmt * some documentation * if configured via env var only, default to cpython * remove extra unsafe * refer users to guide for pypy * Update guide/src/pypy.md Co-Authored-By: omerbenamram <omerbenamram@gmail.com> * Update guide/src/pypy.md Co-Authored-By: omerbenamram <omerbenamram@gmail.com> * @konstin applied patch * check that pypy at least build * search explicitly for libpypy * added note about some known unsupported features * use ld_version * export PYTHON_SYS_EXECUTABLE to `cargo build` test * inverted if * always link pypy dynamically * remove unused imports * Apply @kngwyu’s suggestion * fix tox configuration * try conda virtualenv * try to simply not install python at all inside pypy environment * setup pypy before using “python" * use system_site_packages * revert change to .travis * moved cpyext datetime documentation to module level, and revised it. * Update src/ffi/datetime.rs Co-Authored-By: omerbenamram <omerbenamram@gmail.com> * rustfmt * Update src/ffi/datetime.rs Co-Authored-By: omerbenamram <omerbenamram@gmail.com> * kept only notes that are relevant to users. * invert if * use bash and not sh
2019-04-23 11:18:42 +00:00
# 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"
2019-02-05 13:49:03 +00:00
allow_failures:
- python: "3.8-dev"
2017-06-12 01:30:56 +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
- RUST_BACKTRACE=1
2017-06-15 16:11:19 +00:00
2017-11-27 19:04:49 +00:00
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- cmake
- gcc
- binutils-dev
- libiberty-dev
before_install:
- source ./ci/travis/setup.sh
2017-06-15 16:11:19 +00:00
2015-06-28 19:46:24 +00:00
install:
- pip install setuptools-rust pytest pytest-benchmark tox tox-venv
script:
2018-05-23 14:38:44 +00:00
- ./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
2018-06-12 12:36:34 +00:00
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