forked from bmabey/provenance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (43 loc) · 1.49 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
language: python
sudo: required
dist: xenial
addons:
postgresql: "9.5"
services:
- postgresql
before_script:
- psql -c 'create database test_provenance;' -U postgres
env:
global:
- DB=postgresql://postgres@localhost/test_provenance
python:
# We don't actually use the Travis Python, but this keeps it organized. For now only python 3.5 is supported.
# - "2.7"
# - "3.3"
# - "3.4"
- "3.5"
install:
- if [[ "$TRAVIS_PYTHON_VERSION" == "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
- conda create -n test-environment python=$TRAVIS_PYTHON_VERSION
- source activate test-environment
- conda install numpy
- conda install -c conda-forge pyarrow
- pip install -r test_requirements.txt
# Due to [this issue](https://github.com/boto/botocore/issues/1872), we have
# to explicitly install a specific version of dateutil. Note, this is not
# being added to the requirements file as this does not affect local builds,
# only the travis environment which is using boto.
- pip install python-dateutil==2.8.0
- python setup.py install
script: python setup.py test