Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e095cc
commit fec2c26
Showing
9 changed files
with
135 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#swarmci | ||
FROM python:3-alpine | ||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
COPY requirements.txt /usr/src/app/ | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
COPY . /usr/src/app | ||
CMD [ "python", "-m", "swarmci" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM swarmci | ||
RUN pip install --no-cache-dir -e ".[test]" | ||
CMD [ "python", "-m", "pytest", "tests/" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env python | ||
|
||
if __name__ == "__main__": | ||
import subprocess | ||
import sys | ||
subprocess.call([sys.executable, "-m", "tox", | ||
"-i", "ALL=https://devpi.net/hpk/dev/", | ||
"--develop"] + sys.argv[1:]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
[tox] | ||
envlist = linting,py35,doctesting | ||
|
||
[testenv] | ||
deps=pytest | ||
commands= | ||
pip install -e .[test] | ||
py.test tests | ||
|
||
[testenv:linting] | ||
basepython = python3.5 | ||
deps = flake8 | ||
commands = flake8 swarmci tests | ||
|
||
[testenv:doctest] | ||
commands=py.test --doctest-modules swarmci | ||
deps= | ||
|
||
[testenv:regen] | ||
changedir=doc/en | ||
basepython = python3.5 | ||
deps=sphinx | ||
PyYAML | ||
regendoc>=0.6.1 | ||
whitelist_externals= | ||
rm | ||
make | ||
commands= | ||
rm -rf /tmp/doc-exec* | ||
make regen | ||
|
||
[testenv:coveralls] | ||
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH COVERALLS_REPO_TOKEN | ||
usedevelop=True | ||
basepython=python3.5 | ||
changedir=. | ||
deps = | ||
{[testenv]deps} | ||
coveralls | ||
commands= | ||
coverage run --source=py.test -m swarmci tests | ||
coverage report -m | ||
coveralls | ||
|
||
[flake8] | ||
ignore =E401,E225,E261,E128,E124,E301,E302,E121,E303,W391,E501,E231,E126,E701,E265,E241,E251,E226,E101,W191,E131,E203,E122,E123,E271,E712,E222,E127,E125,E221,W292,E111,E113,E293,E262,W293,E129,E702,E201,E272,E202,E704,E731,E402 |