-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4509214
commit 9cebd13
Showing
10 changed files
with
114 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[run] | ||
branch = True | ||
omit = | ||
*/tests* | ||
*/__init__.py | ||
|
||
[report] | ||
omit = | ||
*/tests* | ||
*/__init__.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
dist: trusty | ||
sudo: false | ||
language: python | ||
env: | ||
- PYTHON_VERSION=3.5 | ||
before_install: | ||
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh | ||
- chmod +x miniconda.sh | ||
- ./miniconda.sh -b | ||
- export PATH=/home/travis/miniconda3/bin:$PATH | ||
- export MPLBACKEND='Agg' | ||
- wget -q https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh | ||
- export MINICONDA_PREFIX="$HOME/miniconda" | ||
- bash miniconda.sh -b -p $MINICONDA_PREFIX | ||
- export PATH="$MINICONDA_PREFIX/bin:$PATH" | ||
- conda config --set always_yes yes | ||
- conda update -q conda | ||
- conda info -a | ||
install: | ||
# q2-dummy-types is only required for the dummy methods and | ||
# visualizers provided as examples. Remove this dependency when you're | ||
# ready to develop your plugin, and add your own dependencies (if there are | ||
# any). | ||
- conda create --yes -n test-env -c qiime2 python=$PYTHON_VERSION qiime nose flake8 | ||
- conda create -q -n test-env --file https://raw.githubusercontent.com/qiime2/environment-files/master/latest/staging/qiime2-latest-conda-linux-64.txt | ||
- source activate test-env | ||
- pip install . | ||
- conda install -q pytest-cov | ||
- pip install -q flake8 coveralls | ||
- pip install -q https://github.com/qiime2/q2lint/archive/master.zip | ||
- make install | ||
script: | ||
- nosetests | ||
- flake8 q2_vsearch setup.py | ||
- make lint | ||
- make test-cov | ||
after_success: | ||
- coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.PHONY: all lint test test-cov install dev clean distclean | ||
|
||
all: ; | ||
|
||
lint: | ||
q2lint | ||
flake8 | ||
|
||
test: all | ||
py.test | ||
|
||
test-cov: all | ||
py.test --cov=q2_vsearch | ||
|
||
install: all | ||
python setup.py install | ||
|
||
dev: all | ||
pip install -e . | ||
|
||
clean: distclean | ||
|
||
distclean: ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
# ---------------------------------------------------------------------------- | ||
# Copyright (c) 2016-2017, QIIME 2 development team. | ||
# | ||
# Distributed under the terms of the Modified BSD License. | ||
# | ||
# The full license is in the file LICENSE, distributed with this software. | ||
# ---------------------------------------------------------------------------- | ||
|
||
__version__ = "0.0.7.dev0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# ---------------------------------------------------------------------------- | ||
# Copyright (c) 2016-2017, QIIME 2 development team. | ||
# | ||
# Distributed under the terms of the Modified BSD License. | ||
# | ||
# The full license is in the file LICENSE, distributed with this software. | ||
# ---------------------------------------------------------------------------- | ||
|
||
import unittest | ||
|
||
from q2_vsearch.plugin_setup import plugin as vsearch_plugin | ||
|
||
|
||
class PluginSetupTests(unittest.TestCase): | ||
|
||
def test_plugin_setup(self): | ||
self.assertEqual(vsearch_plugin.name, 'vsearch') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters