-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
51 lines (43 loc) · 1.45 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
language: python
sudo: false
python:
- "3.7"
addons:
apt:
packages:
- build-essential
- libsuitesparse-dev
# Setup anaconda
before_install:
# - sudo apt-get update
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- 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
# Useful for debugging any issues with conda
- conda info -a
- which pip
install:
# - sudo apt-get -qq install build-essential libsuitesparse-dev
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib
- source activate test-environment
- conda install python=$TRAVIS_PYTHON_VERSION cython scikit-learn coverage pylint
- pip install coveralls pyflakes pep8-naming mccabe flake8 codecov pyyaml
- pip install -r requirements.txt
script:
- pip freeze
- python -m unittests.TestAll
- coverage run --source=bioflow -m unittests.TestAll
after_success:
- coverage report
- coveralls
- flake8 --ignore=E501,N806,E12,E305,E303,F401,E117,W292 --statistics --show-source bioflow
- flake8 --select=C --max-complexity 10 bioflow
notifications:
email: false