-
Notifications
You must be signed in to change notification settings - Fork 84
/
.travis.yml
34 lines (30 loc) · 1.09 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
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
- pip install --upgrade twine
- pip install matplotlib==3.0
- python setup.py develop
- python setup.py sdist bdist_wheel
script:
- # Checks whether your distribution’s long description will render correctly on PyPI.
- twine check dist/*
- # 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
- make flake
after_success:
- bash <(curl -s https://codecov.io/bash)