forked from openworm/c302
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (51 loc) · 1.73 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
# Framework for running automated tests on Open Source Brain using Travis-CI.
# See https://github.com/OpenSourceBrain/osb-model-validation for more details
dist: xenial
addons:
apt:
packages:
# Requirements for Neuron/OMV/etc
- python-numpy
- python-scipy
- python-tornado
- python-matplotlib
- python-tk
- python-dev
language: python
python:
- "3.7"
- "3.8"
# - "3.9" # does version of neuron in omv work with py3.9?
env:
- OMV_ENGINE=jNeuroML
- OMV_ENGINE=jNeuroML_NEURON
- OMV_ENGINE=jNeuroML_validate
- OMV_ENGINE=NON_OMV_TESTS
#before_install:
# To run tests requiring a graphical user interface on Travis CI, use xvfb (X Virtual Framebuffer) to imitate a display.
#- "export DISPLAY=:99.0"
#- "sh -e /etc/init.d/xvfb start"
install:
# Required to run OMV tests
- pip install git+https://github.com/OpenSourceBrain/osb-model-validation
# NeuroML & main install
- pip install pyNeuroML
- pip install .
# Add openworm bundle owmeta remote
- owm bundle remote --user add ow 'https://raw.githubusercontent.com/openworm/owmeta-bundles/master/index.json'
script:
- omv all -V; export OMV_SUCCESS=$?; echo $OMV_SUCCESS
- echo "Finished all OMV tests"
- omv list -V
- if [[ ${OMV_ENGINE} == "NON_OMV_TESTS" ]]; then echo "Continuing with tests not under OMV..."; else exit $OMV_SUCCESS; fi
- echo "Running non OMV tests..."
- python setup.py install
# Testing c302
- cd c302
- mkdir examples
- python c302_IClamp.py A
#- omv install NEURON # Need to install NEURON
#- export NEURON_HOME=/home/travis/neuron/nrn/x86_64/
#- python runAndPlot.py -test
#- python c302_utils.py -nogui
- pip freeze