forked from suny-downstate-medical-center/netpyne
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
204 lines (170 loc) · 5.09 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
# Netpyne travis testing script
sudo: false
addons:
apt:
packages:
# Requirements for Neuron/NetPyne/OMV
- python-numpy
- python-scipy
- python-matplotlib
- python-sympy
- python-tables
language: python
python: 2.7
env:
system_site_packages: true
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
install:
- pip install git+https://github.com/OpenSourceBrain/osb-model-validation
# Need to pre install NEURON so nrnivmodl can be run targeting mod files in a different directory
- omv install NEURON
- python setup.py install
- export NEURON_HOME=/home/travis/neuron/nrn/x86_64/
script:
- cp examples/HHTut/HHTut.py doc/source/code/
- cd doc/source/code/
- $NEURON_HOME/bin/nrnivmodl mod
- python tut1.py
- python tut2.py
- python tut3.py
- python tut5.py
- python tut6.py
- python tut_import.py
- cd ../../../examples
- python HHTut/HHTut_run.py
- python HybridTut/HybridTut_run.py
- cd M1
- $NEURON_HOME/bin/nrnivmodl
- python M1/M1_run.py
- cd ../RL_arm
- $NEURON_HOME/bin/nrnivmodl
- python RL_arm/main.py
notifications:
email: false
slack: neurosim:pj4DaRn3CrmH6hSRV0zBhfjS
# sudo: true
# addons:
# apt:
# packages:
# # Requirements for Neuron/NetPyne
# - build-essential
# - autoconf
# - automake
# - libtool
# - python-numpy
# - python-scipy
# - python-matplotlib
# language: python
# python: 2.7
# env:
# system_site_packages: true
# # - NEURON_HOME=$TRAVIS_BUILD_DIR/nrn-7.3/x86_64/bin/
# # - PYTHONPATH=$TRAVIS_BUILD_DIR:$PYTHONPATH
# install:
# #- pip install scipy
# - pip install numpy
# - pip install matplotlib
# - wget http://www.neuron.yale.edu/ftp/neuron/versions/v7.3/nrn-7.3.tar.gz
# - tar xzvf nrn-7.3.tar.gz
# - cd nrn-7.3
# - ./configure --prefix `pwd` --without-iv --with-nrnpython
# - make
# - make install
# - cd src/nrnpython
# - sudo python setup.py install
# - cd ../../..
# - ls -alt
# - export NEURON_HOME=$TRAVIS_BUILD_DIR/nrn-7.3/x86_64/bin/
# - export PYTHONPATH=$TRAVIS_BUILD_DIR:/usr/local/lib/python2.7/dist-packages/:/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages
# - echo $PYTHONPATH
# - $NEURON_HOME/nrnivmodl doc/source/code/mod
# - cp examples/HHTut/HHTut.py doc/source/code/
# script:
# - python doc/source/code/tut1.py
# - python doc/source/code/tut2.py
# - python doc/source/code/tut3.py
# - python doc/source/code/tut5.py
# - python doc/source/code/tut6.py
# - python doc/source/code/tut_import.py
# - python examples/HHTut/HHTut_run.py
# - python examples/HybridTut/HybridTut_run.py
# - python examples/M1/M1_run.py
# - python examples/RL_arm/main.py
# notifications:
# email: false
# slack: neurosim:pj4DaRn3CrmH6hSRV0zBhfjS
# Framework for running automated tests on OSB using Travis-CI, see https://github.com/OpenSourceBrain/osb-model-validation
# sudo: false
# addons:
# apt:
# packages:
# # Requirements for Neuron/NetPyne
# - build-essential
# - autoconf
# - automake
# - libtool
# - python-numpy
# - python-scipy
# - python-matplotlib
# - python-sympy
# language: python
# python: 2.7
# virtualenv:
# system_site_packages: true
# env:
# - OMV_ENGINE=PyNEURON
# install:
# # Need to pre install NEURON so nrnivmodl can be run targeting mod files in a different directory
# - omv install NEURON
# - export NEURON_HOME=$TRAVIS_BUILD_DIR/neuron/nrn/x86_64/bin/
# - export PATH=$PATH:/home/travis/neuron/nrn/x86_64/bin/
# - export PYTHONPATH=$TRAVIS_BUILD_DIR:/usr/local/lib/python2.7/dist-packages/:/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages
# - $NEURON_HOME/nrnivmodl doc/source/code/mod
# #- /home/travis/neuron/nrn/x86_64/bin/nrnivmodl ../mod.files
# - cd ../..
# script:
# - python doc/source/code/tut2.py
# ## PyNN
# language: python
# python:
# - 2.6
# - 3.3
# - 3.5
# - "2.7_with_system_site_packages"
# sudo: false
# addons:
# apt:
# packages:
# - build-essential
# - autoconf
# - automake
# - libtool
# - libreadline6-dev
# - libncurses5-dev
# - libgsl0-dev
# - python-all-dev
# - python-numpy
# - python-scipy
# - python-sympy
# - openmpi-bin
# - libopenmpi-dev
# install:
# - pip install -r requirements.txt
# - pip install coverage coveralls
# - source ci/install_brian.sh
# - source ci/install_nest.sh
# - source ci/install_neuron.sh
# - pip install .
# script: bash ci/test_script.sh
# after_success:
# - coveralls
# cache:
# directories:
# - $HOME/nest-2.6.0
# - $HOME/nrn-7.3
# - $HOME/build/nest-2.6.0
# - $HOME/build/nrn-7.3
# - $HOME/.cache/pip