forked from MolSSI/QCEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
81 lines (68 loc) · 1.96 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
language: generic
# Run jobs on container-based infrastructure, can be overridden per job
dist: xenial
before_cache:
# if I understand internet correctly, this is equiv to "after_success"
- |
if [[ $TRAVIS_TEST_RESULT = 0 ]]; then
codecov
fi
- conda deactivate
- conda remove --name test --all
cache:
timeout: 1000
directories:
- $HOME/miniconda
matrix:
include:
- os: linux
env:
- PYTHON_VER=3.6
- PROG=RDKIT
- os: linux
env:
- PYTHON_VER=3.6
- PROG=PSI4
- os: linux
env:
- PYTHON_VER=3.7
- PROG=PSI4DEV # py37 not avail for latest release
- os: linux
env:
- PYTHON_VER=3.6
- PROG=ANI
before_install:
# Additional info about the build
- uname -a
- df -h
- ulimit -a
# Install the Python environemt
- source devtools/travis-ci/before_install.sh
- python -V
install:
# Create test environment for package
- |
if [ $PROG == "RDKIT" ]; then
python devtools/scripts/conda_env.py -n=test -p=$PYTHON_VER devtools/conda-envs/rdkit.yaml
elif [ $PROG == "PSI4" ]; then
python devtools/scripts/conda_env.py -n=test -p=$PYTHON_VER devtools/conda-envs/psi.yaml
elif [ $PROG == "PSI4DEV" ]; then
python devtools/scripts/conda_env.py -n=test -p=$PYTHON_VER devtools/conda-envs/psi-nightly.yaml
elif [ $PROG == "ANI" ]; then
python devtools/scripts/conda_env.py -n=test -p=$PYTHON_VER devtools/conda-envs/torchani.yaml
else
echo "ERROR: No match for PROG ($PROG)."
exit 1
fi
- source activate test
- pip install git+https://github.com/MolSSI/QCEngineRecords.git#egg=qcenginerecords
- conda list
# Build and install package
- python setup.py develop --no-deps
script:
# Get a bit of info first
- python -c "import qcengine; print(qcengine.config.global_repr())"
# Run canonical tests
- pytest -v --cov=qcengine/ qcengine/
notifications:
email: false