forked from MolSSI/QCElemental
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
68 lines (56 loc) · 1.38 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
# After changing this file, check it on:
# http://lint.travis-ci.org/
language: python
# Run jobs on container-based infrastructure, can be overridden per job
dist: trusty
matrix:
include:
- os: linux
python: 3.6
env:
- PYTHON_VER=3.6
- PROG=MINIMAL
- os: linux
python: 3.6
env:
- PYTHON_VER=3.6
- PROG=FULL
- os: linux
#python: 3.7
env:
- PYTHON_VER=3.7
- PROG=FULL
before_install:
- uname -a
- free -m
- df -h
- ulimit -a
# Setup python environment
- source devtools/travis-ci/before_install.sh
- python -V
install:
# Create test environment for package
- |
if [ $PROG == "MINIMAL" ]; then
python devtools/scripts/conda_env.py -n=test -p=$PYTHON_VER devtools/conda-envs/minimal_pins.yaml
elif [ $PROG == "FULL" ]; then
python devtools/scripts/conda_env.py -n=test -p=$PYTHON_VER devtools/conda-envs/base.yaml
else
echo "ERROR: No match for PROG ($PROG)."
exit 1
fi
- source activate test
# Build and install package
- python setup.py develop --no-deps
before_script:
- python -V
- conda list
script:
# Get a bit of info first
- python -c "import qcelemental; print(qcelemental.__version__)"
# Run canonical tests
- pytest -v --cov=qcelemental/ qcelemental/
notifications:
email: false
after_success:
- codecov