Merge pull request #794 from AndreMiras/feature/ticket679_travis_ci_and_tox

Introduces CI and tox testing, fixes #679
This commit is contained in:
Andre Miras 2019-01-17 16:10:16 +01:00 committed by GitHub
commit 0407331084
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 42 additions and 0 deletions

11
.travis.yml Normal file
View file

@ -0,0 +1,11 @@
sudo: false
language: python
python:
- "2.7"
- "3.6"
install: pip install tox-travis
script: tox

View file

@ -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
View file

12
tests/test_buildozer.py Normal file
View 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
View 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