|
a |
|
b/.travis.yml |
|
|
1 |
sudo: false |
|
|
2 |
language: python |
|
|
3 |
cache: pip |
|
|
4 |
env: |
|
|
5 |
matrix: |
|
|
6 |
# Minimal required package versions |
|
|
7 |
- ODDT_TOOLKIT=ob CONDA_PY=3.6 MINIMAL_REQ=1 |
|
|
8 |
- ODDT_TOOLKIT=rdk CONDA_PY=3.6 MINIMAL_REQ=1 |
|
|
9 |
# Recent versions |
|
|
10 |
- ODDT_TOOLKIT=ob CONDA_PY=3.6 |
|
|
11 |
- ODDT_TOOLKIT=ob CONDA_PY=3.7 |
|
|
12 |
- ODDT_TOOLKIT=ob CONDA_PY=3.8 |
|
|
13 |
- ODDT_TOOLKIT=rdk CONDA_PY=3.6 |
|
|
14 |
- ODDT_TOOLKIT=rdk CONDA_PY=3.7 |
|
|
15 |
- ODDT_TOOLKIT=rdk CONDA_PY=3.8 |
|
|
16 |
|
|
|
17 |
global: |
|
|
18 |
secure: "XOHub9EE1aj4xDWvws5Ej1oGvb5Dw2vVnDRKpU9ZP5Ko9yJ6AYvy3zDeHBb83htp2JSxdciIB5voBb3LF+o0YliBpHdgrub8CgV8VH3Lpl+f0X14yBsnP/swwY0Lde/Xyq2lq6FcP3siNx8OpaSFFTDIZnAqt/kKzUzBknd9wgA=" |
|
|
19 |
deploy: |
|
|
20 |
# pypi |
|
|
21 |
- provider: pypi |
|
|
22 |
user: __token__ |
|
|
23 |
password: |
|
|
24 |
secure: "PVENDt0UDwftDGLKwd6iFSxra9x95txpE//gfqThhYV36EZyw1KxKmIKfWjZzjok7jI60s3pIwhFFjToErHj4zaE7F+OdS/qflZGMCisV4jl7lNZhIV2LW/9VZ5V2x1Ow+NG28DqWNPpWyd2C4FIqUk9FeO+sslgLkqaAZZW4rU=" |
|
|
25 |
distributions: sdist |
|
|
26 |
on: |
|
|
27 |
tags: true |
|
|
28 |
repo: oddt/oddt |
|
|
29 |
branch: master |
|
|
30 |
# deploy once to prevent conflicting names on PyPi |
|
|
31 |
python: '3.6' |
|
|
32 |
condition: $ODDT_TOOLKIT = ob |
|
|
33 |
# conda |
|
|
34 |
- provider: script |
|
|
35 |
script: conda/deploy.sh |
|
|
36 |
on: |
|
|
37 |
tags: true |
|
|
38 |
repo: oddt/oddt |
|
|
39 |
branch: master |
|
|
40 |
# deploy once to prevent conflicting names on Anaconda.org |
|
|
41 |
python: '3.6' |
|
|
42 |
condition: $ODDT_TOOLKIT = ob |
|
|
43 |
skip_cleanup: true |
|
|
44 |
install: |
|
|
45 |
# Install Miniconda. |
|
|
46 |
- wget -q https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; bash miniconda.sh -b -f -p $HOME/miniconda; |
|
|
47 |
- export PATH="$HOME/miniconda/bin:$PATH" |
|
|
48 |
- conda config --set always_yes yes --set changeps1 no |
|
|
49 |
- conda update -q conda |
|
|
50 |
- conda install -q conda-build anaconda-client |
|
|
51 |
- conda info -a |
|
|
52 |
- if [ -d $HOME/miniconda/envs/test-environment ]; then rm -rf $HOME/miniconda/envs/test-environment; fi |
|
|
53 |
- conda create -q -n test-environment python=$CONDA_PY numpydoc six pillow |
|
|
54 |
- source activate test-environment |
|
|
55 |
- | |
|
|
56 |
if [[ "$MINIMAL_REQ" == "1" ]]; then |
|
|
57 |
conda install -q -c conda-forge numpy=1.12 scipy=0.19 joblib=0.10.3 scikit-image=0.12.3 xlsxwriter \ |
|
|
58 |
scikit-learn=0.18 pandas=0.19.2; |
|
|
59 |
if [[ "$ODDT_TOOLKIT" == "ob" ]]; then |
|
|
60 |
conda install -q -c conda-forge openbabel=3.0.0; |
|
|
61 |
elif [[ "$ODDT_TOOLKIT" == "rdk" ]]; then |
|
|
62 |
conda install -q -c conda-forge rdkit=2018.03 boost=1.68; |
|
|
63 |
fi |
|
|
64 |
else |
|
|
65 |
conda install -q -c anaconda numpy scikit-learn joblib pandas scikit-image xlsxwriter; |
|
|
66 |
if [[ "$ODDT_TOOLKIT" == "ob" ]]; then |
|
|
67 |
conda install -q -c conda-forge openbabel; |
|
|
68 |
elif [[ "$ODDT_TOOLKIT" == "rdk" ]]; then |
|
|
69 |
conda install -q -c conda-forge rdkit=2019.09; |
|
|
70 |
fi |
|
|
71 |
fi |
|
|
72 |
conda install -q -c bioconda autodock-vina |
|
|
73 |
conda install -q pytest pytest-cov pytest-xdist |
|
|
74 |
pip install coveralls |
|
|
75 |
- python setup.py install |
|
|
76 |
script: |
|
|
77 |
- pytest --cov=oddt -n 2 -v -s --durations=0 tests/ |
|
|
78 |
- oddt_cli --help |
|
|
79 |
- oddt_cli tests/data/dude/xiap/crystal_ligand.sdf -osmi |
|
|
80 |
- oddt_cli tests/data/dude/xiap/actives_docked.sdf --similarity ifp --query tests/data/dude/xiap/crystal_ligand.sdf --cutoff 0.9 --receptor tests/data/dude/xiap/receptor_rdkit.pdb -ocsv |
|
|
81 |
- oddt_cli tests/data/dude/xiap/actives_docked.sdf --similarity sifp --query tests/data/dude/xiap/crystal_ligand.sdf --cutoff 0.9 --receptor tests/data/dude/xiap/receptor_rdkit.pdb -ocsv |
|
|
82 |
- oddt_cli tests/data/dude/xiap/actives_docked.sdf --similarity usr --query tests/data/dude/xiap/crystal_ligand.sdf --cutoff 0.3 -ocsv |
|
|
83 |
- oddt_cli tests/data/dude/xiap/actives_docked.sdf --similarity usr_cat --query tests/data/dude/xiap/crystal_ligand.sdf --cutoff 0.3 -ocsv |
|
|
84 |
- oddt_cli tests/data/dude/xiap/actives_docked.sdf --similarity electroshape --query tests/data/dude/xiap/crystal_ligand.sdf --cutoff 0.3 -ocsv |
|
|
85 |
- oddt_cli tests/data/dude/xiap/actives_docked.sdf --score pleclinear --receptor tests/data/dude/xiap/receptor_rdkit.pdb -ocsv |
|
|
86 |
|
|
|
87 |
after_success: |
|
|
88 |
- coveralls |