1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
language: python
os: linux
# To test filter plugins, need hdf5 1.8.11+, present in Trusty but not Precise.
dist: trusty
# Required to get Trusty.
#sudo: true
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
addons:
apt:
packages:
- libhdf5-serial-dev
- hdf5-tools
install:
- "pip install -U pip virtualenv"
# Ensures the system hdf5 headers/libs will be used whatever its version
- "export HDF5_DIR=/usr/lib"
- "pip install -r requirements.txt"
# Installing the plugin to arbitrary directory to check the install script.
- "python setup.py install --h5plugin --h5plugin-dir ~/hdf5/lib"
# Ensure it's installable and usable in virtualenv
- "virtualenv ~/venv"
- "travis_wait 30 ~/venv/bin/pip -v install --no-binary=h5py ."
- "~/venv/bin/pip -v install nose"
# Can't be somewhere that has a 'bitshuffle' directory as nose will use that
# copy instead of installed package.
script:
- "cd ~"
- "nosetests -v bitshuffle" # Test the system install
- "venv/bin/nosetests -v bitshuffle" # Test the virtualenv install
|