comparison Makefile @ 0:f33e9e6a6c88 draft default tip

planemo upload for repository https://github.com/mvdbeek/dedup_hash commit 367da560c5924d56c39f91ef9c731e523825424b-dirty
author mvdbeek
date Wed, 23 Nov 2016 07:49:05 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f33e9e6a6c88
1 # Location of virtualenv used for development.
2 VENV?=.venv
3 BRANCH=curie2
4 GALAXY_REPO=https://github.com/mvdbeek/galaxy.git
5 CONDA_PREFIX?=.conda
6 CONDA_PREFIX_PATH?=`readlink -e .conda`
7 # Source virtualenv to execute command (flake8, sphinx, twine, etc...)
8 IN_VENV=if [ -f $(VENV)/bin/activate ]; then . $(VENV)/bin/activate; fi;
9 PLANEMO=$(IN_VENV) planemo
10
11 setup-venv: ## setup a development virutalenv in current directory
12 if [ ! -d $(VENV) ]; then virtualenv $(VENV); exit; fi;
13 $(IN_VENV) pip install -r requirements.txt;
14 $(IN_VENV) pip install planemo
15
16 lint-35: setup-venv
17 $(IN_VENV) pip install tox && $(IN_VENV) tox -e py35-lint
18
19 lint-27: setup-venv
20 $(IN_VENV) pip install tox && $(IN_VENV) tox -e py27-lint
21
22 db:
23 if [ ! -d db_gx_rev_0127.sqlite ]; then wget https://github.com/jmchilton/galaxy-downloads/raw/master/db_gx_rev_0127.sqlite ; exit; fi;
24
25 setup_galaxy_clone:
26 if [ ! -d .galaxy ]; then git clone --depth=50 --branch $(BRANCH) $(GALAXY_REPO) .galaxy; exit; fi;
27
28 planemo-test: db setup-venv setup_galaxy_clone
29 if [ ! -d $(CONDA_PREFIX) ]; then $(PLANEMO) conda_init --conda_prefix $(CONDA_PREFIX);fi && \
30 $(PLANEMO) conda_install --conda_prefix $(CONDA_PREFIX_PATH) . && \
31 $(PLANEMO) test \
32 --galaxy_database_seed db_gx_rev_0127.sqlite \
33 --galaxy_root .galaxy \
34 --galaxy_source $(GALAXY_REPO) \
35 --galaxy_branch $(BRANCH) \
36 --conda_dependency_resolution \
37 --conda_prefix $(CONDA_PREFIX_PATH)
38
39 planemo-serve: db setup-venv setup_galaxy_clone
40 $(PLANEMO) serve \
41 --galaxy_database_seed db_gx_rev_0127.sqlite \
42 --galaxy_root .galaxy \
43 --galaxy_source $(GALAXY_REPO) \
44 --galaxy_branch $(BRANCH) \
45 --conda_auto_install \
46 --conda_dependency_resolution \
47 --conda_prefix $(CONDA_PREFIX_PATH)
48
49 py-test:
50 $(IN_VENV) python test/test_dedup_hash.py
51
52 clean:
53 rm -Rf *.sqlite* .venv .conda .galaxy dist/ *.egg-info tool_test_output.* .tox || true