-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy path.travis.yml
66 lines (53 loc) · 2.04 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
# Framework for running automated tests on Open Source Brain using Travis-CI.
# See https://github.com/OpenSourceBrain/osb-model-validation for more details
addons:
apt:
packages:
# Requirements for Neuron/OMV/etc
- python-numpy
- python-scipy
- python-tornado
- python-tk
language: python
python:
- 2.7
#- 3.7 # python 3 support in c302 repo
env:
- OMV_ENGINE=jNeuroML
- OMV_ENGINE=jNeuroML_NEURON
- OMV_ENGINE=jNeuroML_validatev1
- OMV_ENGINE=jNeuroML_validate
- OMV_ENGINE=NON_OMV_TESTS
install:
# Required to run OMV tests
- pip install git+https://github.com/OpenSourceBrain/osb-model-validation
- pip install tornado matplotlib==2.2.5 cachetools==3.1.1
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 # Works in https://github.com/openworm/c302
- 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 # Works in https://github.com/openworm/c302
#- python c302_utils.py -nogui # Works in https://github.com/openworm/c302