forked from jonescompneurolab/hnn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
81 lines (74 loc) · 2.32 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
language: c
env:
- PYTHON_VERSION=3.7
matrix:
include:
# Linux
- os: linux
name: "Linux full"
services: docker
- docker
# addons:
# apt:
# sources:
# - ubuntu-toolchain-r-test
# packages:
# - libopenmpi-dev
# - openmpi-bin
# OSX
- os: osx
name: "MacOS full"
services: docker
# 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 coverage coveralls
# - travis_wait 60
# - |
# if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
# wget -q https://neuron.yale.edu/ftp/neuron/versions/v7.7/nrn-7.7.x86_64-osx.pkg -O nrn.pkg
# sudo installer -pkg nrn.pkg -allowUntrusted -target /
# else
# git clone https://github.com/neuronsimulator/nrn
# cd nrn
# ./build.sh
# ./configure --with-nrnpython=python3 --without-iv --prefix=${install_prefix} \
# --with-paranrn --disable-rx3d --without-nrnoc-x11 --with-mpi
# make -j4
# make install -j4
# cd src/nrnpython/
# python3 setup.py install
# cd $TRAVIS_BUILD_DIR
# export PATH=$PATH:${install_prefix}/x86_64/bin
# make
# python setup.py develop
# fi
script:
# - py.test tests/
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
export TRAVIS_TESTING=1
xvfb-run ./hnn_docker -u start
fi
after_success:
- bash <(curl -s https://codecov.io/bash)