Skip to content

Commit

Permalink
Add tox & travis, bump version.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Jun 6, 2020
1 parent e992225 commit 2fe00f3
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ build
dist
jmeter.log
.mypy_cache
.tox
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ max-line-length=300 # this rarely applies, because we always use black to autofo
variable-rgx=[a-z0-9_]{1,30}$

[MESSAGES CONTROL]
disable=logging-not-lazy,logging-fstring-interpolation,missing-docstring,wildcard-import,unused-wildcard-import,invalid-name,logging-format-interpolation,broad-except
disable=logging-not-lazy,logging-fstring-interpolation,missing-docstring,wildcard-import,unused-wildcard-import,invalid-name,logging-format-interpolation,broad-except,no-else-break,too-many-arguments
26 changes: 26 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
language: python
cache: pip
matrix:
include:
# - python: 3.8
# env: TOXENV=py38
- python: 3.7
env: TOXENV=py37
# - python: 3.6
# env: TOXENV=py36
addons:
apt:
packages:
- libev-dev
install:
- pip install tox
script:
- tox
deploy:
provider: pypi
user: $TWINE_USERNAME
password: $TWINE_PASSWORD
skip_existing: true
distributions: sdist
on:
tags: true
2 changes: 1 addition & 1 deletion locust_swarm/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.5"
__version__ = "1.0.6"
12 changes: 12 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[tox]
envlist = py{37}
; envlist = py{36,37,38}

[testenv]
deps =
black
pylint
commands =
black --check locust_swarm/
pylint --rcfile .pylintrc locust_swarm/
swarm --help

0 comments on commit 2fe00f3

Please sign in to comment.