Skip to content

Commit

Permalink
Add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
tylertreat-wf committed Mar 5, 2014
1 parent 99d1dff commit c35133a
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
SHELL := /bin/bash
PYTHON := python
PIP := pip

BUILD_DIR := .build

all: deps

clean:
find . -name "*.py[co]" -delete

distclean: clean
rm -rf $(BUILD_DIR)
rm -rf $(LIBS_DIR)

test: clean integrations
deps: py_dev_deps py_deploy_deps

py_deploy_deps: $(BUILD_DIR)/pip-deploy.out

py_dev_deps: $(BUILD_DIR)/pip-dev.out

$(BUILD_DIR)/pip-deploy.out: requirements.txt
@mkdir -p $(BUILD_DIR)
$(PIP) install -Ur $< && touch $@

$(BUILD_DIR)/pip-dev.out: requirements_dev.txt
@mkdir -p $(BUILD_DIR)
$(PIP) install -Ur $< && touch $@

unit:
nosetests

integrations:
nosetests --logging-level=ERROR -a slow --with-coverage --cover-package=bigquery

0 comments on commit c35133a

Please sign in to comment.