pyo3/.travis.yml

26 lines
756 B
YAML
Raw Normal View History

2015-06-28 19:46:24 +00:00
language: python
python:
2017-06-12 05:23:49 +00:00
- "2.7"
2015-09-13 17:49:09 +00:00
- "3.5"
2017-01-18 20:28:04 +00:00
- "3.6"
2017-06-12 01:30:56 +00:00
2015-04-19 03:21:28 +00:00
env:
2017-05-14 19:55:52 +00:00
# - RUST_VERSION=1.17.0
- RUST_VERSION=nightly
2017-06-12 01:30:56 +00:00
2017-05-21 05:24:30 +00:00
sudo: required
dist: trusty
2015-06-28 19:46:24 +00:00
install:
- python -c "import sysconfig; print('\n'.join(map(repr,sorted(sysconfig.get_config_vars().items()))))"
2015-06-28 19:46:24 +00:00
- mkdir ~/rust-installer
- curl -sL https://static.rust-lang.org/rustup.sh -o ~/rust-installer/rustup.sh
2017-05-19 18:48:05 +00:00
- sh ~/rust-installer/rustup.sh --prefix=~/rust --spec=$RUST_VERSION -y
2015-06-28 19:46:24 +00:00
- export PATH="$HOME/rust/bin:$PATH"
- export PYTHON_LIB=$(python -c "import sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
- find $PYTHON_LIB
2015-06-28 19:46:24 +00:00
- export LIBRARY_PATH="$LIBRARY_PATH:$PYTHON_LIB"
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PYTHON_LIB:$HOME/rust/lib"
- rustc -V
2015-04-19 04:32:59 +00:00
script:
2017-05-13 06:01:54 +00:00
- make test