forked from pydata/patsy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (41 loc) · 1.42 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
language: python
python:
- 2.6
- 2.7
- 3.2
- 3.3
- 3.4
before_install:
# Escape Travis virtualenv
- deactivate
# See: http://conda.pydata.org/docs/travis.html
- wget http://repo.continuum.io/miniconda/Miniconda3-3.6.0-Linux-x86_64.sh -O miniconda.sh
- 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
- conda info -a
- conda create -q -n testenv python=$TRAVIS_PYTHON_VERSION numpy scipy pandas coverage nose pip
- source activate testenv
install:
- python setup.py sdist
- pip install dist/*
script:
# We change directories to make sure that python won't find the copy
# of patsy in the source directory.
- mkdir empty
- cd empty
- INSTALLDIR=$(python -c "import os; import patsy; print(os.path.dirname(patsy.__file__))")
- export PYTHONWARNINGS=default PATSY_FORCE_NO_WARNINGS=1
# The --exe is because python sometimes marks all installed modules
# as executable, so without --exe nosetests will just ignore
# everything. Baffling, but so it goes.
- coverage run --source=$INSTALLDIR --rcfile=../.coveragerc $(which nosetests) --exe --failure-detail --all-modules $INSTALLDIR
- coverage report --rcfile=../.coveragerc --show-missing
- python ../tools/check-API-refs.py
notifications:
email:
after_success:
- pip install coveralls && coveralls