forked from NeuralEnsemble/elephant
-
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.
simplified travis build and introduced single VERSION file (NeuralEns…
…emble#222) * simplified travis build * added requirements min version test * refactored setup.py * [SPADE] fim as an extra module * test_spade.py: print if fim.so is found during the test * always install neo by pip * inlcude test/*.txt in a pypi tarball * Revert "[SPADE] fim as an extra module" * test conda 3.5 -> pip 3.5 * download fim.so at 'pip install .' * fix travis * moved downloading fim.so from setup.py to spade * pep 8 fix * added test_download_spade_fim
- Loading branch information
Showing
18 changed files
with
194 additions
and
294 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
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 |
---|---|---|
@@ -1,44 +1,84 @@ | ||
dist: precise | ||
dist: xenial | ||
language: python | ||
sudo: false | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- libatlas3gf-base | ||
- libatlas-dev | ||
- libatlas-base-dev | ||
- liblapack-dev | ||
- gfortran | ||
- python-scipy | ||
|
||
python: | ||
- 2.7.13 | ||
|
||
env: | ||
matrix: | ||
# This environment tests the newest supported anaconda env | ||
- DISTRIB="conda" PYTHON_VERSION="2.7" INSTALL_MKL="true" | ||
NUMPY_VERSION="1.15.1" SCIPY_VERSION="1.1.0" PANDAS_VERSION="0.23.4" | ||
SIX_VERSION="1.10.0" COVERAGE="true" | ||
- DISTRIB="conda" PYTHON_VERSION="3.5" INSTALL_MKL="true" | ||
NUMPY_VERSION="1.15.1" SCIPY_VERSION="1.1.0" PANDAS_VERSION="0.23.4" | ||
SIX_VERSION="1.10.0" COVERAGE="true" | ||
# This environment tests minimal dependency versions | ||
- DISTRIB="conda_min" PYTHON_VERSION="2.7" INSTALL_MKL="false" | ||
SIX_VERSION="1.10.0" NUMPY_VERSION="1.8.2" SCIPY_VERSION="0.14.0" COVERAGE="true" | ||
- DISTRIB="conda_min" PYTHON_VERSION="3.4" INSTALL_MKL="false" | ||
SIX_VERSION="1.10.0" NUMPY_VERSION="1.8.2" SCIPY_VERSION="0.14.0" COVERAGE="true" | ||
# basic Ubuntu build environment | ||
- DISTRIB="ubuntu" PYTHON_VERSION="2.7" INSTALL_ATLAS="true" | ||
COVERAGE="true" | ||
# This environment tests for mpi | ||
- DISTRIB="mpi" PYTHON_VERSION="3.5" INSTALL_MKL="false" | ||
NUMPY_VERSION="1.15.1" SCIPY_VERSION="1.1.0" SIX_VERSION="1.10.0" | ||
MPI_VERSION="2.0.0" COVERAGE="true" MPI="true" | ||
|
||
install: source continuous_integration/install.sh | ||
script: bash continuous_integration/test_script.sh | ||
update: true | ||
|
||
|
||
matrix: | ||
include: | ||
- name: "conda 2.7" | ||
python: 2.7 | ||
env: DISTRIB="conda" | ||
|
||
- name: "pip 2.7" | ||
python: 2.7 | ||
env: DISTRIB="pip" | ||
|
||
- name: "pip 3.5" | ||
python: 3.5 | ||
env: DISTRIB="pip" | ||
|
||
- name: "conda 3.6" | ||
python: 3.6 | ||
env: DISTRIB="conda" | ||
|
||
- name: "pip 3.6" | ||
python: 3.6 | ||
env: DISTRIB="pip" | ||
|
||
- name: "pip 3.6 requirements-extras" | ||
python: 3.6 | ||
env: DISTRIB="pip" | ||
before_install: sudo apt install -y libopenmpi-dev openmpi-bin | ||
before_script: pip install -r requirements-extras.txt | ||
script: mpiexec -n 1 nosetests --with-coverage --cover-package=elephant | ||
|
||
- name: "conda 3.7" | ||
python: 3.7 | ||
env: DISTRIB="conda" | ||
|
||
exclude: | ||
- name: "pip 3.6 requirements min version" | ||
# excluded due to unmet dependencies in neo, quantities, and scipy | ||
python: 3.6 | ||
env: DISTRIB="pip" | ||
before_install: | ||
- sudo apt install libblas-dev liblapack-dev libatlas-base-dev gfortran | ||
- sed -i 's/>=/==/g' requirements.txt | ||
|
||
|
||
install: | ||
- if [[ "${DISTRIB}" == "conda" ]]; | ||
then | ||
export MINICONDA_PATH=${HOME}/miniconda; | ||
export PATH=${MINICONDA_PATH}/bin:${PATH}; | ||
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; | ||
bash miniconda.sh -b -p ${MINICONDA_PATH}; | ||
conda config --set always_yes yes; | ||
conda update conda; | ||
conda create --name elephant_env python=${TRAVIS_PYTHON_VERSION}; | ||
source activate elephant_env; | ||
conda install mkl; | ||
conda config --append channels conda-forge; | ||
sed '/^neo/d' requirements.txt > requirements-conda.txt; | ||
conda install --file requirements-conda.txt; | ||
echo "'neo' will be installed by pip from requirements.txt later on"; | ||
pip list; | ||
else | ||
pip install -r requirements.txt; | ||
fi | ||
|
||
- pip -V | ||
- pip install coverage coveralls nose | ||
- pip install . | ||
- pip list | ||
- python --version | ||
|
||
script: | ||
nosetests --with-coverage --cover-package=elephant | ||
|
||
after_success: | ||
- if [[ "$COVERAGE" == "true" ]]; then coveralls || echo "failed"; fi | ||
cache: apt | ||
coveralls || echo "coveralls failed" |
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 |
---|---|---|
@@ -1,8 +1,12 @@ | ||
# Include requirements | ||
include requirement*.txt | ||
include README.rst | ||
include LICENSE.txt | ||
include AUTHORS.txt | ||
include elephant/test/spike_extraction_test_data.npz | ||
include elephant/VERSION | ||
include elephant/current_source_density_src/README.md | ||
include elephant/current_source_density_src/test_data.mat | ||
include elephant/spade_src/LICENCE | ||
include elephant/test/spike_extraction_test_data.txt | ||
recursive-include doc * | ||
prune doc/build | ||
|
||
# special care for the files, used in setup.py | ||
include elephant/spade_src/fim_manager.py |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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 @@ | ||
0.6.2 |
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
Oops, something went wrong.