forked from googleapis/python-bigquery-pandas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (31 loc) · 1.17 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
sudo: false
language: python
env:
- PYTHON=2.7 PANDAS=0.19.2 COVERAGE='false' LINT='false'
- PYTHON=3.4 PANDAS=0.18.1 COVERAGE='false' LINT='false'
- PYTHON=3.5 PANDAS=0.19.2 COVERAGE='true' LINT='false'
- PYTHON=3.6 PANDAS=0.19.2 COVERAGE='false' LINT='true'
before_install:
- echo "before_install"
- source ci/travis_process_gbq_encryption.sh
install:
- 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 update -q conda
- conda info -a
- conda create -n test-environment python=$PYTHON
- source activate test-environment
- conda install pandas=$PANDAS
- pip install coverage pytest pytest-cov flake8 codecov
- REQ="ci/requirements-${PYTHON}.pip"
- pip install -r $REQ
- conda list
- python setup.py install
script:
- pytest -s -v --cov=pandas_gbq --cov-report xml:/tmp/pytest-cov.xml pandas_gbq
- if [[ $COVERAGE == 'true' ]]; then codecov ; fi
- if [[ $LINT == 'true' ]]; then flake8 pandas_gbq -v ; fi