forked from jonescompneurolab/hnn-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (50 loc) · 1.44 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
language: c
env:
- PYTHON_VERSION=3.7
matrix:
include:
# Linux
- os: linux
name: "Linux full"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libopenmpi-dev
- openmpi-bin
# OSX
- os: osx
name: "MacOS full"
before_install:
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
wget -q https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget -q https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
fi;
- chmod +x miniconda.sh
- ./miniconda.sh -b -p ${HOME}/miniconda
- export PATH=${HOME}/miniconda/bin:$PATH
- conda update --yes --quiet conda
install:
- install_prefix=~
- conda create -n testenv --yes pip python=${PYTHON_VERSION}
- source activate testenv
- conda install --yes scipy numpy matplotlib
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
conda install --yes mpi4py openmpi
else
pip install mpi4py
fi
- pip install flake8 pytest pytest-cov
- pip install mne psutil joblib
- pip install NEURON
- |
cd $TRAVIS_BUILD_DIR
python setup.py install
script:
- flake8 --count hnn_core
- python -m py.test . --cov=hnn_core hnn_core/tests/ --cov-report=xml
after_success:
- bash <(curl -s https://codecov.io/bash) -f ./coverage.xml