forked from glm-tools/pyglmnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (25 loc) · 914 Bytes
/
.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
language: python
env:
- PYTHON=3.5
- PYTHON=3.6
- PYTHON=3.7
before_install:
- wget -q http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b -p /home/travis/miniconda
- export PATH=/home/travis/miniconda/bin:$PATH
- conda update --yes conda
install:
- conda create -n testenv --yes pip python=$PYTHON
- source activate testenv
- conda install --yes --file requirements.txt
- python setup.py develop
script:
- # Run tests, show verbose output and print the top 10 slowest running tests
- py.test --cov=pyglmnet tests/ --verbose --durations=10
- # Run doctests
- py.test pyglmnet/pyglmnet.py --verbose --doctest-modules
- # Run flake8 to check that package and tests adhere to PEP8
- flake8 --count pyglmnet tests
after_success:
- bash <(curl -s https://codecov.io/bash)