forked from leeping/geomeTRIC
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
86 lines (75 loc) · 2.68 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
82
83
84
85
86
language: python
# Run jobs on container-based infrastructure, can be overridden per job
matrix:
include:
- os: linux
python: 2.7
dist: trusty
env:
- PYTHON_VER=2.7
- PROG=OPENMM_ONLY
- os: linux
python: 3.5
dist: trusty
env:
- PYTHON_VER=3.5
- PROG=OPENMM_ONLY
- os: linux
python: 3.6
dist: trusty
env:
- PYTHON_VER=3.6
- PROG=OMM_PSI4_RDKIT
- os: linux
python: 3.7
dist: xenial
env:
- PYTHON_VER=3.7
- PROG=OMM_PSI4_RDKIT
before_install:
# Additional info about the build
- uname -a
- df -h
- ulimit -a
# Install the Python environment
- source devtools/travis-ci/before_install.sh
- python -V
install:
# Create test environment for package
- |
if [ $PROG == "OMM_RDKIT" ]; then
python devtools/scripts/create_conda_env.py -n=test -p=$PYTHON_VER devtools/conda-envs/omm_rdkit.yaml
elif [ $PROG == "OMM_PSI4" ]; then
python devtools/scripts/create_conda_env.py -n=test -p=$PYTHON_VER devtools/conda-envs/omm_psi4.yaml
elif [ $PROG == "OMM_PSI4_RDKIT" ]; then
python devtools/scripts/create_conda_env.py -n=test -p=$PYTHON_VER devtools/conda-envs/omm_psi4_rdkit.yaml
elif [ $PROG == "OPENMM_ONLY" ]; then
python devtools/scripts/create_conda_env.py -n=test -p=$PYTHON_VER devtools/conda-envs/openmm_only.yaml
else
echo "ERROR: No match for PROG ($PROG)."
exit 1
fi
- conda activate test
# Build and install package
- python setup.py develop --no-deps
script:
- pytest -v --cov=geometric geometric/tests/
# Run a Psi4 command line test if possible
- |
if [ $PROG == "PSI4" ]; then
cd examples/water2_psi4
coverage run `which geometric-optimize` --engine psi4 water2.psi4in
cd ../..
fi
notifications:
email: false
after_success:
- codecov
# deploy:
# provider: pypi
# user: leeping
# password:
# secure: jfybbMD6ZVhuEmCHkAcW66M48zka2uSuJc+PzvAN1LgU1scqo6Ze+PZfvZtoci8x/oh8Iw3OB3/YaCqcf2sZaf9bOhf3CCFLzKF3hLds3Eiyrq53AX2naETuctbYqbPv+PIImjTMphb9QoaIqRCxNHHxGhnw098AbVv32PQ2oUQG6zS4gGjzyr5AFCZtHWJkBoFBpI8CXHmEZ/UkPHCBX1panpKh1CcNnkivmtbsV4enDL+ozvxBzSwlZ38+qddo8mspmOA++u5HfzyVfkhxFfogZbl2CB5mxqPgWIfoM++7qb+YLiWT1fPQCdzgp02RnWdB/qzd86BwYsSYZCigEswxiTlB0bhPGJxS2hEN74BFKvaCQkRq2emajSjGJxF8yEiBVs5ImzslJN0u55af3ANuO0Ev8BtL3pmHjuLzOr1/SXyhUh6HVWzH/Gk6iVvhbyxwLQq+dH9QHz60adABnhA84eMgVjawd/+Qzm8id5UU2i5RlA36xbmMTJm5RoybCD5LZ8y6knGwVCtm+mv8q/pJJMn1jkiCAMeS9PC2f1HoT0/02NXzim92ynTBNnRPu+uOo2r6Y9aaxfc8dh1VCRZpW9SzhQ0oz4HlB3VBzkbPlyAl4fkXPVJc+vd37qJvmI0/Cx/mNhRvf+AXDje/Mm8cw4QoY0dekjrRT4L0Cp8=
# on:
# tags: true
# all_branches : true