Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Makefile support #139

Merged
merged 1 commit into from Aug 8, 2017
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
9 changes: 4 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,15 @@ before_install:
- conda config --set always_yes yes
- conda update -q conda
- conda info -a
- git clone https://github.com/qiime2/q2lint ../q2lint
install:
- 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
- conda install -q pytest-cov
- pip install -q flake8 coveralls
- python setup.py install
- pip install -q https://github.com/qiime2/q2lint/archive/master.zip
- make install
script:
- flake8
- python ../q2lint/q2lint.py
- py.test --cov=q2_types
- make lint
- make test-cov
after_success:
- coveralls
23 changes: 23 additions & 0 deletions Makefile
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_types

install: all
python setup.py install

dev: all
pip install -e .

clean: distclean

distclean: ;
2 changes: 1 addition & 1 deletion ci/recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ package:
source:
path: ../..
build:
script: python setup.py install
script: make install

requirements:
build:
Expand Down