forked from suny-downstate-medical-center/netpyne
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
117 lines (105 loc) · 2.93 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# Netpyne travis testing script
sudo: false
git:
depth: false
addons:
apt:
packages:
# - python-numpy
# - python-scipy
# - python-matplotlib
- python-tk
- python-sympy
- python-tables
- locales
- wget
- gcc
- g++
- build-essential
- libncurses-dev
- libpython-dev
- cython
- libx11-dev
- git
#- bison
- flex
- automake
- libtool
- libxext-dev
- libncurses-dev
#- libopenmpi-dev
- make
#- zlib1g-dev
#- unzip
#- libpng-dev
language: python
python:
- 2.7
- 3.6
# virtualenv:
# system_site_packages: true
install:
- cd ..
- pip install numpy matplotlib scipy pandas future tables bokeh
- pip install pyneuroml # This will install libNeuroML also
- git clone --branch 7.8.1 https://github.com/neuronsimulator/nrn
- cd nrn
- ./build.sh
- export NEURON_HOME=~/neuron
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then ./configure --without-x --with-nrnpython=python2 --prefix=$NEURON_HOME --without-paranrn --without-iv ; fi # --prefix='/home/jovyan/work/nrn/'
- if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then ./configure --without-x --with-nrnpython=python3 --prefix=$NEURON_HOME --without-paranrn --without-iv ; fi # --prefix='/home/jovyan/work/nrn/'
- make --silent -j4
- make --silent install -j4
- cd src/nrnpython
- python setup.py install
- export PATH=$PATH:$NEURON_HOME/x86_64/bin
- export PYTHONPATH=$PYTHONPATH:$TRAVIS_BUILD_DIR:$NEURON_HOME/lib/python/
script:
- cd $TRAVIS_BUILD_DIR/doc/source/code/
- $NEURON_HOME/x86_64/bin/nrnivmodl mod
- python tut2.py -nogui
- python tut3.py -nogui
- python tut5.py -nogui
- python tut6.py -nogui
- python tut7.py -nogui
#- python tut_import.py
# HHTut example
- cd ../../../examples/HHTut
- python HHTut_run.py -nogui
- python HHTut_export.py -nogui
# HybridTut example
- cd ../HybridTut
- $NEURON_HOME/x86_64/bin/nrnivmodl .
- python HybridTut_run.py -nogui
- python HybridTut_export.py -nogui
# M1 example
- cd ../M1
- $NEURON_HOME/x86_64/bin/nrnivmodl .
- python M1_run.py -nogui
- python M1_export.py -nogui
# PTcell example
- cd ../PTcell
- $NEURON_HOME/x86_64/bin/nrnivmodl mod
- python init.py -nogui
# LFP recording
- cd ../LFPrecording
- $NEURON_HOME/x86_64/bin/nrnivmodl mod
- python cell_lfp.py -nogui
# LFP recording
- cd ../saving
- python init.py -nogui
# RxD buffering
- cd ../rxd_buffering
- python buffering.py -nogui
# RxD net
- cd ../rxd_net
- $NEURON_HOME/x86_64/bin/nrnivmodl mod
- python init.py -nogui
# NeuroML import example
- cd ../NeuroMLImport/
- $NEURON_HOME/x86_64/bin/nrnivmodl .
- python SimpleNet_import.py -nogui
- cd ../..
notifications:
email: false
#slack: neurosim:pj4DaRn3CrmH6hSRV0zBhfjS