-
Notifications
You must be signed in to change notification settings - Fork 29
/
.travis.yml
46 lines (38 loc) · 1.25 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
# adapted from http://conda.pydata.org/docs/travis.html
# and from https://github.com/rdkit/rdkit/blob/master/.travis.yml
language: python
python:
# We don't actually use the Travis Python, but this keeps it organized.
- "3.6"
- "3.7"
env:
- PGPORT=54321 PGDATA=$HOME/PGDATA
before_install:
# download and install miniconda
- wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/conda
- export PATH="$HOME/conda/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
install:
# create and activate the build/test environment
- conda create -q -n tenv python=$TRAVIS_PYTHON_VERSION
- source activate tenv
- conda install -q django psycopg2
- conda install -q -c rdkit rdkit rdkit-postgresql
- python setup.py develop
before_script:
- initdb
# ensure that the rdkit extension is loaded at process startup
- echo "shared_preload_libraries = 'rdkit'" >> $PGDATA/postgresql.conf
- pg_ctl start -l $PGDATA/log.txt
- sleep 5 # just make sure that postgres startup has completed
script:
- python ./runtests.py
after_failure:
- cat $PGDATA/log.txt
after_script:
- pg_ctl stop