forked from INM-6/elephant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
85 lines (71 loc) · 2.3 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
dist: xenial
language: python
sudo: false
addons:
apt:
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
after_success: coveralls || echo "coveralls failed"
- name: "conda 3.7"
python: 3.7
env: DISTRIB="conda"
exclude:
- name: "pip 3.6 requirements-extras min version"
# excluded due to unrelated unittest assertWarn bug error
python: 3.6
env: DISTRIB="pip"
before_install:
- sudo apt install -y libopenmpi-dev openmpi-bin
- sudo apt install -y libblas-dev liblapack-dev libatlas-base-dev gfortran
- sed -i 's/>=/==/g' requirements*.txt
before_script: pip install -r requirements-extras.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
- python setup.py install
- python -c "from elephant.spade import HAVE_FIM; assert HAVE_FIM"
- pip list
- python --version
script:
nosetests --with-coverage --cover-package=elephant