@@ -3,48 +3,50 @@ sudo: false
3
3
language : python
4
4
5
5
env :
6
- - PYTHON=2.7 PANDAS=0.19.2 COVERAGE='false' LINT='true'
7
- - PYTHON=3.5 PANDAS=0.18.1 COVERAGE='true' LINT='false'
8
- - PYTHON=3.6 PANDAS=0.20.1 COVERAGE='false' LINT='false'
9
- - PYTHON=3.6 PANDAS=MASTER COVERAGE='false' LINT='true'
6
+ - PYTHON=2.7 PANDAS=0.19.2 COVERAGE='false' LINT='true' PYENV_VERSION=2.7.14
7
+ - PYTHON=3.5 PANDAS=0.18.1 COVERAGE='true' LINT='false' PYENV_VERSION=3.5.4
8
+ - PYTHON=3.6 PANDAS=0.20.1 COVERAGE='false' LINT='false' PYENV_VERSION=3.6.1
9
+ - PYTHON=3.6 PANDAS=MASTER COVERAGE='false' LINT='true' PYENV_VERSION=3.6.1
10
10
11
11
before_install :
12
12
- echo "before_install"
13
13
- source ci/travis_process_gbq_encryption.sh
14
14
15
15
install :
16
- - wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
17
- - bash miniconda.sh -b -p $HOME/miniconda
18
- - export PATH="$HOME/miniconda/bin:$PATH"
19
- - hash -r
20
- - conda config --set always_yes yes --set changeps1 no
21
- - conda config --add channels pandas
22
- - conda config --add channels conda-forge
23
- - conda update -q conda
24
- - conda info -a
25
- - conda create -q -n test-environment python=$PYTHON
26
- - source activate test-environment
27
- - if [[ "$PANDAS" == "MASTER" ]]; then
28
- conda install -q numpy pytz python-dateutil;
29
- PRE_WHEELS="https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com";
30
- pip install --pre --upgrade --timeout=60 -f $PRE_WHEELS pandas;
31
- pip install -e 'git+https://github.com/GoogleCloudPlatform/google-cloud-python.git#egg=version_subpkg&subdirectory=api_core';
32
- pip install -e 'git+https://github.com/GoogleCloudPlatform/google-cloud-python.git#egg=version_subpkg&subdirectory=core';
33
- pip install -e 'git+https://github.com/GoogleCloudPlatform/google-cloud-python.git#egg=version_subpkg&subdirectory=bigquery';
16
+ # work around https://github.com/travis-ci/travis-ci/issues/8363
17
+ # https://github.com/pre-commit/pre-commit/commit/e3ab8902692e896da9ded42bd4d76ea4e1de359d
18
+ - pyenv install -s $PYENV_VERSION
19
+ - pyenv global system $PYENV_VERSION
20
+ - REQ="ci/requirements-${PYTHON}-${PANDAS}" ;
21
+ if [ -f "$REQ.pip" ]; then
22
+ pip install --upgrade nox-automation ;
34
23
else
24
+ wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
25
+ bash miniconda.sh -b -p $HOME/miniconda ;
26
+ export PATH="$HOME/miniconda/bin:$PATH" ;
27
+ hash -r ;
28
+ conda config --set always_yes yes --set changeps1 no ;
29
+ conda config --add channels pandas ;
30
+ conda config --add channels conda-forge ;
31
+ conda update -q conda ;
32
+ conda info -a ;
33
+ conda create -q -n test-environment python=$PYTHON ;
34
+ source activate test-environment ;
35
35
conda install -q pandas=$PANDAS;
36
- fi
37
- - pip install coverage pytest pytest-cov flake8 codecov
38
- - REQ="ci/requirements-${PYTHON}-${PANDAS}"
39
- - if [ -f "$REQ.pip" ]; then
40
- pip install -r "$REQ.pip";
41
- else
36
+ pip install coverage pytest pytest-cov flake8 codecov ;
42
37
conda install -q --file "$REQ.conda";
38
+ conda list ;
39
+ python setup.py install ;
43
40
fi
44
- - conda list
45
- - python setup.py install
46
41
47
42
script :
48
- - pytest -v --cov=pandas_gbq --cov-report xml:/tmp/pytest-cov.xml pandas_gbq
49
- - if [[ $COVERAGE == 'true' ]]; then codecov ; fi
50
- - if [[ $LINT == 'true' ]]; then flake8 pandas_gbq -v ; fi
43
+ - if [[ $PYTHON == '2.7' ]]; then nox -s test27 ; fi
44
+ - if [[ $PYTHON == '3.5' ]]; then nox -s test35 ; fi
45
+ - if [[ $PYTHON == '3.6' ]] && [[ "$PANDAS" == "MASTER" ]]; then nox -s test36master ; fi
46
+ - REQ="ci/requirements-${PYTHON}-${PANDAS}" ;
47
+ if [ -f "$REQ.conda" ]; then
48
+ pip install coverage pytest pytest-cov codecov ;
49
+ pytest -v --cov=pandas_gbq --cov-report xml:/tmp/pytest-cov.xml pandas_gbq ;
50
+ fi
51
+ - if [[ $COVERAGE == 'true' ]]; then nox -s cover ; fi
52
+ - if [[ $LINT == 'true' ]]; then nox -s lint ; fi
0 commit comments