forked from SCM-NV/nano-qmflows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (42 loc) · 1.16 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
sudo: required
language: generic
env:
global:
- COMMIT_AUTHOR_EMAIL: "[email protected]"
matrix:
- PYTHON_VERSION=3.6
- PYTHON_VERSION=3.7
install:
- export CXX="g++-7"
- export CC="gcc-7"
addons:
apt:
packages: g++-7
sources:
- ubuntu-toolchain-r-test
install:
- export CC=gcc-7
- export CXX=g++-7
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no --set auto_update_conda False
# Useful for debugging any issues with conda
- conda info -a
# Install python env
- conda create --name namd python=${PYTHON_VERSION}
- source activate namd
- conda install -c conda-forge/label/gcc7 highfive h5py eigen cython rdkit pybind11
- conda install -c conda-forge libint==2.4.2
- pip install .[test] -v
before_script:
- conda list
script:
- py.test -m "not (slow or long)" --cov=nac test
- coverage xml && coverage report -m
after_success:
- python-codacy-coverage -r coverage.xml
branches:
only:
- master