forked from neurodsp-tools/neurodsp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (32 loc) · 1 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
language: python
python:
- "3.4"
- "3.5"
- "3.6"
notifications:
email: false
# Install packages
install:
- pip install -r requirements.txt
# Setup anaconda to get scipy, and others
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes
- conda update -q conda
# The next couple lines fix a crash with multiprocessing on Travis and are not specific to using Miniconda
- sudo rm -rf /dev/shm
- sudo ln -s /run/shm /dev/shm
# Install packages
install:
- conda create -n testenv pip python=$TRAVIS_PYTHON_VERSION
- conda update conda
- source activate testenv
- conda install --file requirements.txt
- pip install .
# Add the current directory to the pythonpath so that tests can load neurodsp
before_script: export PYTHONPATH=$PYTHONPATH:$(pwd)
# command to run tests
script: pytest neurodsp/tests