forked from hgrecco/pint-pandas
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
53 lines (45 loc) · 2.04 KB
/
.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
language: python
branches:
# prevent bors temporary branches to be built
except:
- staging.tmp
- trying.tmp
env:
- UNCERTAINTIES="N" PYTHON="3.6" NUMPY_VERSION=1.14 PANDAS=1
before_install:
- sudo apt-get update
- if [[ "$PYTHON" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
# The next couple lines fix a crash with multiprocessing on Travis and are not specific to using Miniconda
- sudo rm -rf /dev/shm
- sudo ln -s /run/shm /dev/shm
- export ENV_NAME=travis
install:
- conda create --yes -n $ENV_NAME python=$PYTHON pip
- source activate $ENV_NAME
- conda install --yes numpy==$NUMPY_VERSION;
- if [[ $TRAVIS_PYTHON_VERSION == '3.5' && $NUMPY_VERSION == 1.11.2 && $UNCERTAINTIES == "Y" ]]; then pip install babel serialize pyyaml; fi
# this is superslow but suck it up until updates to pandas are made
# will need to change this to main pint repo later
- pip install numpy cython pytest pytest-cov nbval; pip install git+https://github.com/pandas-dev/pandas.git@9ed49eb936f2dcbe824a91fa1339647f052f73f3; pip install git+https://github.com/andrewgsavage/pint.git@96689de663e0af0e2b2125c2e7da415166d67626; python -c 'import pandas; print(pandas.__version__)'; python -c 'import pandas; print(pandas.__version__)';
- pip install coveralls
script:
# if we're doing the pandas tests and hence have pytest available, we can
# simply use it to run all the tests
- python -m coverage run -p --source=pint --omit="*test*","*compat*" -m py.test -rfsxEX;
# test notebooks too
- pip install -e .; pytest --nbval notebooks/*;
- coverage combine
- coverage report -m
after_success:
- coveralls --verbose