forked from kiyo-masui/bitshuffle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (29 loc) · 984 Bytes
/
.travis.yml
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
language: python
os: linux
python:
- "3.5"
- "3.6"
- "3.7"
addons:
apt:
packages:
- libhdf5-serial-dev
- hdf5-tools
- pkg-config
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