forked from qubekit/QUBEKit
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
85 lines (74 loc) · 1.85 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
language: python
branches:
only:
- master
# We now support osx and linux (not windows due to dependencies)
# python versions are 3.6+
# we run the kitchen sink build and a minimal viable build
matrix:
include:
# Test osx with everything
- os: osx
language: generic
env:
- PYTHON_VER=3.6
- ENV=EVERYTHING
# mac 3.7 builds have conflicting enviroments try turning on latter.
# - os: osx
# language: generic
# env:
# - PYTHON_VER=3.7
# - ENV=EVERYTHING
# Test Linux with everything
- os: linux
python: 3.6
env:
- PYTHON_VER=3.6
- ENV=EVERYTHING
- os: linux
python: 3.7
env:
- PYTHON_VER=3.7
- ENV=EVERYTHING
# Test Linux with minimal
- os: linux
python: 3.6
env:
- PYTHON_VER=3.6
- ENV=MINIMAL
- os: linux
python: 3.7
env:
- PYTHON_VER=3.7
- ENV=MINIMAL
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 [ $ENV == "EVERYTHING" ]; then
python devtools/scripts/conda_env.py -n=test -p=$PYTHON_VER devtools/conda-envs/everything.yaml
elif [ $ENV == "MINIMAL" ]; then
python devtools/scripts/conda_env.py -n=test -p=$PYTHON_VER devtools/conda-envs/minimal.yaml
else
echo "ERROR: No match for PROG ($ENV)."
exit 1
fi
- source activate test
# Build and install package
- python setup.py develop --no-deps
script:
# we need to sort this so only the relevant tests run on the right builds, do not test missing packages
# first make sure qubekit is installed by testing the entry points
- QUBEKit -h
- qubekit -h
# now run tests
- python QUBEKit/tests/ligand_tests.py
notifications:
email: false