forked from openworm/CElegansNeuroML
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
75 lines (61 loc) · 2.11 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
# Framework for running automated tests on Open Source Brain using Travis-CI.
# See https://github.com/OpenSourceBrain/osb-model-validation for more details
dist: trusty
sudo: false
addons:
apt:
packages:
# Requirements for Neuron/OMV/etc
- python-numpy
- python-scipy
- python-tornado
- python-matplotlib
- python-tk
language: python
python:
- "2.7"
virtualenv:
system_site_packages: true
env:
- OMV_ENGINE=jNeuroML
- OMV_ENGINE=jNeuroML_NEURON
- OMV_ENGINE=jNeuroML_validatev1
- 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
- pip install tornado
script:
- omv all -V; export OMV_SUCCESS=$?; echo $OMV_SUCCESS
- echo "Finished all OMV tests"
- 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
# Test readers
- cd CElegans/pythonScripts
# Install PyOpenWorm
- git clone https://github.com/openworm/PyOpenWorm.git
- cd PyOpenWorm
- git checkout 7ff1266 # As used in Docker for OpenWorm
- python setup.py install
- cd ..
# Testing RegenerateConnectome.py, SpreadsheetDataReader.py, OpenWormReader.py via py.test
#
#
# NOTE: disabling this test until issue with install of PyOpenWorm is resolved:
# https://travis-ci.org/openworm/CElegansNeuroML/jobs/268419603
# - py.test -vs python_script_tester.py
#
###############################################
# Testing c302
- cd c302
- 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