Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 22 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,44 @@
language: python
dist: xenial
dist: bionic
sudo: required

matrix:
include:
- python: 3.5
- python: 3.6
- python: 3.7
- python: 3.8

# GitHub branch
branches:
only:
- master

# build jobs
jobs:
include:
- python: 3.5
- python: 3.6
- python: 3.7
- python: 3.8
after_success:
- coveralls
- stage: deploy
install:
- pip install numpy scipy progressbar2
- pip install sphinx sphinx-rtd-theme sphinxcontrib-bibtex numpydoc==0.9.2 travis-sphinx
script:
- sphinx-apidoc -feo docs/source modopt
- travis-sphinx -v -o docs/build build -n -s docs/source
after_success:
- travis-sphinx -o docs/build deploy

# update pre-installed packages
before_install:
- pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U

# install package and dependencies
# install dependencies
install:
- pip install coverage nose pytest pytest-cov
- pip install coverage nose pytest pytest-cov coveralls
- pip install scikit-learn
- pip install astropy scikit-image
- if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then pip install numpy future scipy astropy progressbar2 sphinx sphinx-rtd-theme sphinxcontrib-bibtex numpydoc travis-sphinx coveralls; fi

# run unit tests
script:
- python setup.py test
- if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then sphinx-apidoc -feo docs/source modopt/; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then travis-sphinx -v -o docs/build build -n -s docs/source; fi

# run coverage tests
after_success:
- if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then coveralls; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then travis-sphinx -o docs/build deploy; fi

# notification settings
notification:
Expand Down
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include requirements.txt
include README.rst
include LICENSE.txt
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ ModOpt

:Author: Samuel Farrens `(samuel.farrens@cea.fr) <samuel.farrens@cea.fr>`_

:Version: 1.4.3
:Version: 1.4.4

:Release Date: 30/04/2020
:Release Date: 16/06/2020

:Documentation: |link-to-docs|

Expand Down
Loading