-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
59 lines (53 loc) · 2.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Don't use language: python; this gives us an unnecessary virtualenv
language: c
branches:
only:
- master
env:
# Build and test package on all supported python versions
- BUILD_TARGET=3.7 MINICONDA_VERSION=4.7.10
- BUILD_TARGET=3.6 MINICONDA_VERSION=4.7.10
# # To make sure it's still working with conda 4.5 and 4.6
# - BUILD_TARGET=3.7 MINICONDA_VERSION=4.6.14
# - BUILD_TARGET=3.6 MINICONDA_VERSION=4.5.12
# Smoketest the package on conda canary
# - BUILD_TARGET=3.7 MINICONDA_VERSION=latest CONDA_CANARY="yes"
os:
- linux
- osx
jobs:
# conda canary shouldn't block the build, just show us as an FYI
allow_failures:
- env: BUILD_TARGET=3.7 MINICONDA_VERSION=latest CONDA_CANARY="yes"
# skip the historical conda tests on Mac to save time
exclude:
- env: BUILD_TARGET=3.7 MINICONDA_VERSION=4.6.14
os: osx
- env: BUILD_TARGET=3.6 MINICONDA_VERSION=4.5.12
os: osx
- env: BUILD_TARGET=3.7 MINICONDA_VERSION=latest CONDA_CANARY="yes"
os: osx
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then MINICONDA_OS=Linux; else MINICONDA_OS=MacOSX; fi
- wget https://repo.anaconda.com/miniconda/Miniconda3-$MINICONDA_VERSION-$MINICONDA_OS-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p "$HOME"/miniconda
- source "$HOME"/miniconda/etc/profile.d/conda.sh
- conda config --set always_yes yes --set changeps1 no --set auto_update_conda false --set notify_outdated_conda false
# yapf is pinned to help make sure we get the same results here as a user does locally.
- conda install -c defaults -c conda-forge conda-build conda-verify codecov flake8 pep257 yapf==0.25.0
- if [[ "$CONDA_CANARY" == "yes" ]]; then conda install -c conda-canary conda; fi
- conda info -a
- export LANG=en_US.UTF-8
- export COVERAGE_DIR=":$HOME/htmlcov"
- printenv | sort
- conda install -c rdkit rdkit
- conda install -c conda-forge codecov
script:
- conda activate
- python setup.py install
- coverage run ./tests/ScoDruglikeness_test.py --cov=codecov
- coverage run ./tests/ScoFH_test.py --cov=codecov
- coverage run ./tests/ScoTox_test.py --cov=codecov
- coverage run ./tests/ScoRepresent_test.py --cov=codecov
after_success:
- codecov