-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add minimal test dependencies and a Travis CI config file
- Loading branch information
Showing
6 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
dist: xenial # required for Python >= 3.7 | ||
|
||
language: python | ||
python: | ||
# We don't actually use the Travis Python, but this keeps it organized. | ||
# - "3.4" # conda UnsatisfiableError: pandas -> numpy[version='>=1.14.6,<2.0a0'] -> python[version='>=2.7,<2.8.0a0'] | ||
# - "3.5" # conda never finishes solving environment | ||
- "3.6" | ||
- "3.7" | ||
|
||
install: | ||
- sudo apt-get update | ||
|
||
# install conda | ||
- 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 --set changeps1 no | ||
- conda update -q conda | ||
- conda info -a | ||
|
||
# create python environment | ||
- conda create -q -n test-environment -c conda-forge python=$TRAVIS_PYTHON_VERSION coveralls nose | ||
- conda env update -q -n test-environment -f environment.yml | ||
- source activate test-environment | ||
|
||
# check version | ||
- python -V | ||
|
||
# install package | ||
- python setup.py install | ||
|
||
script: | ||
# run tests | ||
nosetests --with-coverage --cover-package=neurotic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- av | ||
- ipywidgets | ||
- numpy | ||
- pandas | ||
- pip | ||
- pyqt | ||
- pyyaml | ||
- quantities | ||
- tqdm | ||
- pip: | ||
- elephant>=0.6.2 | ||
- pylttb | ||
- git+https://github.com/jpgill86/python-neo.git@axographrawio | ||
- git+https://github.com/jpgill86/ephyviewer.git@experimental |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Tests for the neurotic package | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
coveralls | ||
nose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters