Skip to content

Commit

Permalink
Merge 21c4331 into fda08f8
Browse files Browse the repository at this point in the history
  • Loading branch information
dnephin committed Sep 7, 2016
2 parents fda08f8 + 21c4331 commit 7702bd4
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ htmlcov/

.idea
.*.sw[po]

.dobi
.cache
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ env:
- TOX_ENV=coverage

install:
- pip install --use-mirrors tox coveralls
- pip install tox coveralls
script: tox -e $TOX_ENV
after_success: coveralls
24 changes: 24 additions & 0 deletions dobi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

meta:
project: pystaticconf

mount=source:
bind: .
path: /work

image=builder:
image: staticconf-dev
context: dockerfiles/
dockerfile: Dockerfile

job=test:
use: builder
mounts: [source]
interactive: true
command: tox

job=shell:
use: builder
mounts: [source]
interactive: true
command: bash
22 changes: 22 additions & 0 deletions dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

FROM ubuntu:xenial

ENV LANG C.UTF-8
RUN export DEBIAN_FRONTEND=noninteractive; \
apt-get update && apt-get install -y --no-install-recommends \
software-properties-common

RUN export DEBIAN_FRONTEND=noninteractive; \
add-apt-repository ppa:fkrull/deadsnakes && \
apt-get update && apt-get install -y --no-install-recommends \
python2.6 \
python2.7 \
python3.4 \
python3.5 \
pypy \
curl

RUN curl -LS https://bootstrap.pypa.io/get-pip.py | python3 && \
pip install tox

WORKDIR /work
2 changes: 0 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ upload-dir = docs/build/html
max-line-length = 85
max-complexity = 8
ignore = E126,E241,E221,E128

[pytest]
6 changes: 4 additions & 2 deletions tests/config_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,9 +448,11 @@ def test_changes(self, mock_mtime):

class TestMTimeComparatorWithCompareFunc(object):

def __init__(self):
@pytest.fixture(autouse=True)
def setup_comparator(self):
self._LoggingMTimeComparator = functools.partial(
config.MTimeComparator, compare_func=config.build_compare_func(self._err_logger))
config.MTimeComparator,
compare_func=config.build_compare_func(self._err_logger))

@pytest.fixture(autouse=True)
def _reset_err_logger(self):
Expand Down
6 changes: 5 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py26,py27,py33,py34,pypy,docs,coverage
envlist = py26,py27,py34,py35,pypy,docs,coverage

[testenv]
deps =
Expand All @@ -11,6 +11,10 @@ commands =
py.test {posargs:tests}
flake8 staticconf tests testing

[testenv:py26]
commands =
py.test {posargs:tests}

[testenv:docs]
deps =
{[testenv]deps}
Expand Down

0 comments on commit 7702bd4

Please sign in to comment.