Skip to content

Commit

Permalink
Setup unit test dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
tylertreat committed Feb 25, 2014
1 parent d4e073e commit f21291d
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*.egg-info
dist
build
.build
eggs
parts
bin
Expand Down
31 changes: 31 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
SHELL := /bin/bash
PYTHON := python
PIP := pip

BUILD_DIR := .build

clean:
find . -name "*.py[co]" -delete
find $(BUILD_DIR) -name "*_deps.out" -delete

deps: clean py_deploy_deps py_dev_deps

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

py_deploy_deps: $(BUILD_DIR)/py_deploy_deps.out

py_dev_deps: $(BUILD_DIR)/py_dev_deps.out

test: deps integrations

unit:
nosetests

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

$(BUILD_DIR)/py_dev_deps.out: requirements_dev.txt
@mkdir -p .build
$(PIP) install -Ur $< && touch $@
Empty file added requirements.txt
Empty file.
6 changes: 6 additions & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
coverage
flake8
nose
mock
NoseGunit
rednose==0.3
5 changes: 5 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[nosetests]
rednose=True
verbosity=0
with-nosegunit=True
ATTR=!slow

0 comments on commit f21291d

Please sign in to comment.