Skip to content

Commit

Permalink
Add travis
Browse files Browse the repository at this point in the history
  • Loading branch information
hadim committed Nov 23, 2018
1 parent b19c898 commit 060cb26
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 4 deletions.
33 changes: 33 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
language: python

matrix:
fast_finish: true
include:
- language: python
os: linux
env:
- PYTHON_VERSION="3.6"
- language: python
os: linux
env:
- PYTHON_VERSION="3.7"

install:
- sudo apt-get update
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- echo ". $HOME/miniconda/etc/profile.d/conda.sh" >> $HOME/.bashrc
- source $HOME/.bashrc
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda config --add channels conda-forge
- conda update -q conda
- conda info -a
- conda create -n conda_env python=$PYTHON_VERSION
- conda activate conda_env
- conda install nose

script:
- conda activate conda_env
- python setup.py install
- nosetests -v -s .
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# read-roi

[![Build Status](https://travis-ci.com/hadim/read-roi.svg?branch=master)](https://travis-ci.com/hadim/read-roi)
[![PyPI version](https://img.shields.io/pypi/v/read-roi.svg?maxAge=2591000)](https://pypi.org/project/read-roi/)

Read ROI files .zip or .roi generated with ImageJ. Code is largely inspired from : http://rsb.info.nih.gov/ij/developer/source/ij/io/RoiDecoder.java.html
Expand All @@ -25,7 +26,7 @@ rois = read_roi_zip(roi_zip_path)

## Requirements

- Python 3.5 and above.
- Python 3.6 and above.

## Install

Expand Down
2 changes: 1 addition & 1 deletion rever.xsh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$PROJECT = 'read-roi'

$ACTIVITIES = ['version_bump', 'tag', 'push_tag', 'pypi', 'conda_forge', 'ghrelease']
$ACTIVITIES = ['version_bump', 'tag', 'push_tag', 'pypi', 'ghrelease', 'conda_forge',]

$VERSION_BUMP_PATTERNS = [('read_roi/_version.py', '__version__\s*=.*', "__version__ = '$VERSION'"),
('setup.py', 'version\s*=.*,', "version='$VERSION',")
Expand Down
2 changes: 0 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
[metadata]
name = read-roi
version = 1.4.3-dev
long_description = file: README.md,

[bdist_wheel]
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
author_email='[email protected]',
url='https://github.com/hadim/read-roi/',
description='Read ROI files .zip or .roi generated with ImageJ.',
long_description_content_type='text/markdown',
packages=find_packages(),
classifiers=[
'Development Status :: 5 - Production/Stable',
Expand Down

0 comments on commit 060cb26

Please sign in to comment.