Skip to content

Commit

Permalink
Added .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cganterh committed Mar 24, 2018
1 parent 15d026b commit 5b320ab
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
language: python

python:
- "3.3"
- "3.4"
- "3.5"
- "3.6"

before_install: pip install pipenv

# command to install dependencies
install: pipenv install --dev

# command to run tests
script: pipenv run make _test
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
.PHONY: test
test:
.PHONY: _test
_test:
flake8 .
MYPYPATH=stubs mypy le.py
coverage run tests.py

.PHONY: report
report: _test
coverage-badge -qfo coverage.svg
coverage report

Expand All @@ -11,7 +14,7 @@ sdist bdist_wheel: test
python setup.py $@

.PHONY: upload
upload: test clean sdist bdist_wheel
upload: _test clean sdist bdist_wheel
twine upload $(twine_options) dist/*

.PHONY: upload_test
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = le
version = 1.0.6
version = 1.0.7
url = https://github.com/cganterh/le
author = Cristóbal Ganter
author_email = cganterh@gmail.com
Expand Down

0 comments on commit 5b320ab

Please sign in to comment.