Skip to content

Commit 0ecfc95

Browse files
committed
Dockerize
1 parent f73c0fa commit 0ecfc95

10 files changed

+600
-654
lines changed

.coveragerc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[run]
2+
branch = True
3+
source = aiomcache, tests
4+
omit = site-packages
5+
6+
[html]
7+
directory = htmlcov

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var/*
2020
.tox
2121
.DS_Store
2222
.coverage
23-
.noseids
2423
.idea
2524
docs/_build/
26-
nosetests.xml
25+
build
26+
.cache

Makefile

+7-18
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,20 @@
11
# Some simple testing tasks (sorry, UNIX only).
22

3-
PYTHON=python3
4-
PYFLAKES=pyflakes
5-
6-
FILTER=
7-
83
doc:
94
cd docs && make html
105
echo "open file://`pwd`/docs/_build/html/index.html"
116

12-
pep:
13-
pep8 aiomcache examples tests
14-
157
flake:
16-
$(PYFLAKES) .
8+
flake8 aiomcache tests examples
179

18-
test:
19-
$(PYTHON) runtests.py $(FILTER)
10+
test: flake
11+
py.test tests
2012

21-
vtest: pep flake
22-
$(PYTHON) runtests.py -v $(FILTER)
2313

24-
testloop: pep flake
25-
$(PYTHON) runtests.py --forever $(FILTER)
14+
cov cover coverage: flake
15+
py.test --cov=aiopg --cov-report=html --cov-report=term tests
16+
@echo "open file://`pwd`/htmlcov/index.html"
2617

27-
cov cover coverage: pep flake
28-
$(PYTHON) runtests.py --coverage $(FILTER)
2918

3019
clean:
3120
find . -name __pycache__ |xargs rm -rf
@@ -40,4 +29,4 @@ clean:
4029
rm -rf coverage
4130
rm -rf docs/_build
4231

43-
.PHONY: all pep test vtest testloop cov clean
32+
.PHONY: all flake test cov clean

requirements.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
docker-py
2+
pytest
3+
pytest-sugar
4+
python-memcached
5+
flake8

runtests.py

-287
This file was deleted.

tests/__init__.py

Whitespace-only changes.

tests/_testutil.py

-28
This file was deleted.

0 commit comments

Comments
 (0)