-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
executable file
·44 lines (44 loc) · 1.26 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
language: python
cache: pip
python:
- "2.7"
- "3.5"
before_install:
- start_dir=$(pwd)
- sudo apt-get update
- sudo apt-get install libx11-dev libxt-dev gnome-devel
- sudo apt-get install -y -q mpich libmpich-dev
- sudo apt-get install libncurses-dev xfonts-100dpi
- pip install --upgrade pip
- pip install scipy numpy matplotlib cython mpi4py neuronpy
- curl -o nrn.tar.gz https://neuron.yale.edu/ftp/neuron/versions/v7.5/nrn-7.5.tar.gz
- curl -o iv.tar.gz https://neuron.yale.edu/ftp/neuron/versions/v7.5/iv-19.tar.gz
- tar -xvzf nrn.tar.gz
- tar -xvzf iv.tar.gz
- rm *.tar.gz
- mkdir ~/neuron
- mv nrn-7.5 ~/neuron/nrn
- mv iv-19 ~/neuron/iv
- cd ~/neuron/iv
- ./configure --prefix=`pwd`
- make
- make install
- cd ~/neuron/nrn
- python_loc=$(which python)
- ./configure --prefix=`pwd` --with-iv=$HOME/neuron/iv --with-paranrn --with-nrnpython=$python_loc
- make
- make install
- export IV=$HOME/neuron/iv
- export N=$HOME/neuron/nrn
- export CPU=x86_64
- export PATH="$IV/$CPU/bin:$N/$CPU/bin:$PATH"
- cd ~/neuron/nrn/src/nrnpython/
- python setup.py install
- cd $start_dir
install:
- pip install -r requirements.txt
- python setup.py develop
script:
- py.test --cov=hoc2swc tests/
after_success:
- codecov