forked from googleapis/python-bigquery-pandas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (47 loc) · 1.95 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
sudo: false
language: python
env:
- PYTHON=2.7 PANDAS=0.19.2 COVERAGE='false' LINT='true' PYENV_VERSION=2.7.14
- PYTHON=3.5 PANDAS=0.18.1 COVERAGE='true' LINT='false' PYENV_VERSION=3.5.4
- PYTHON=3.6 PANDAS=0.20.1 COVERAGE='false' LINT='false' PYENV_VERSION=3.6.1
- PYTHON=3.6 PANDAS=MASTER COVERAGE='false' LINT='true' PYENV_VERSION=3.6.1
before_install:
- echo "before_install"
- source ci/travis_process_gbq_encryption.sh
install:
# work around https://github.com/travis-ci/travis-ci/issues/8363
# https://github.com/pre-commit/pre-commit/commit/e3ab8902692e896da9ded42bd4d76ea4e1de359d
- pyenv install -s $PYENV_VERSION
- pyenv global system $PYENV_VERSION
- REQ="ci/requirements-${PYTHON}-${PANDAS}" ;
if [ -f "$REQ.pip" ]; then
pip install --upgrade nox-automation ;
else
wget http://repo.continuum.io/miniconda/Miniconda3-latest-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 config --add channels pandas ;
conda config --add channels conda-forge ;
conda update -q conda ;
conda info -a ;
conda create -q -n test-environment python=$PYTHON ;
source activate test-environment ;
conda install -q pandas=$PANDAS;
pip install coverage pytest pytest-cov flake8 codecov ;
conda install -q --file "$REQ.conda";
conda list ;
python setup.py install ;
fi
script:
- if [[ $PYTHON == '2.7' ]]; then nox -s test27 ; fi
- if [[ $PYTHON == '3.5' ]]; then nox -s test35 ; fi
- if [[ $PYTHON == '3.6' ]] && [[ "$PANDAS" == "MASTER" ]]; then nox -s test36master ; fi
- REQ="ci/requirements-${PYTHON}-${PANDAS}" ;
if [ -f "$REQ.conda" ]; then
pip install pytest ;
pytest -v tests ;
fi
- if [[ $COVERAGE == 'true' ]]; then nox -s cover ; fi
- if [[ $LINT == 'true' ]]; then nox -s lint ; fi