Introduces CI and tox testing, fixes #679
- run setup.py on both Python2 and Python3 - runs simple test case for both Python2 and Python3 - checks the PEP8 style - updates README.md adds Travis badge
This commit is contained in:
parent
c66af5dc0b
commit
58faefa243
5 changed files with 42 additions and 0 deletions
11
.travis.yml
Normal file
11
.travis.yml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
sudo: false
|
||||||
|
|
||||||
|
language: python
|
||||||
|
|
||||||
|
python:
|
||||||
|
- "2.7"
|
||||||
|
- "3.6"
|
||||||
|
|
||||||
|
install: pip install tox-travis
|
||||||
|
|
||||||
|
script: tox
|
|
@ -1,6 +1,9 @@
|
||||||
Buildozer
|
Buildozer
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
.. image:: https://travis-ci.com/kivy/buildozer.svg?branch=master
|
||||||
|
:target: https://travis-ci.com/kivy/buildozer
|
||||||
|
|
||||||
Buildozer is a tool for creating application packages easily.
|
Buildozer is a tool for creating application packages easily.
|
||||||
|
|
||||||
The goal is to have one "buildozer.spec" file in your app directory, describing
|
The goal is to have one "buildozer.spec" file in your app directory, describing
|
||||||
|
|
0
tests/__init__.py
Normal file
0
tests/__init__.py
Normal file
12
tests/test_buildozer.py
Normal file
12
tests/test_buildozer.py
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
import unittest
|
||||||
|
from buildozer import Buildozer
|
||||||
|
|
||||||
|
|
||||||
|
class TestBuildozer(unittest.TestCase):
|
||||||
|
|
||||||
|
def test_buildozer_base(self):
|
||||||
|
"""
|
||||||
|
Basic test making sure the Buildozer object can be instanciated.
|
||||||
|
"""
|
||||||
|
buildozer = Buildozer()
|
||||||
|
self.assertEqual(buildozer.specfilename, 'buildozer.spec')
|
16
tox.ini
Normal file
16
tox.ini
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
[tox]
|
||||||
|
envlist = pep8,py27,py36
|
||||||
|
|
||||||
|
[testenv]
|
||||||
|
commands =
|
||||||
|
python -m unittest discover --top-level-directory=. --start-directory=tests/
|
||||||
|
|
||||||
|
[testenv:pep8]
|
||||||
|
deps = flake8
|
||||||
|
commands = flake8 buildozer/
|
||||||
|
|
||||||
|
[flake8]
|
||||||
|
ignore =
|
||||||
|
E121, E122, E123, E125, E126, E127, E128, E129, E131, E226, E231, E241,
|
||||||
|
E262, E265, E301, E302, E303, E305, E402, E501, E502, E722, E731, E741,
|
||||||
|
F401, F821, F841, W391, W504, W605
|
Loading…
Reference in a new issue