added .travis-kivy.yml for runnig kivy test cases
parent
b7d68db7f2
commit
a59b25f1ca
@ -0,0 +1,15 @@
|
||||
language: python3.7
|
||||
cache: pip3
|
||||
dist: bionic
|
||||
python:
|
||||
- "3.7"
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- build-essential
|
||||
- libcap-dev
|
||||
- xvfb
|
||||
install:
|
||||
- pip3 install -r kivy-requirements.txt
|
||||
script:
|
||||
- python3 src/tests-kivy.py
|
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env python
|
||||
"""Custom tests runner script for python3 kivy app"""
|
||||
import random # noseq
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
|
||||
def unittest_discover():
|
||||
"""Explicit test suite creation"""
|
||||
loader = unittest.defaultTestLoader
|
||||
loader.sortTestMethodsUsing = lambda a, b: random.randint(-1, 1)
|
||||
return loader.discover('bitmessagekivy.tests')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
result = unittest.TextTestRunner(verbosity=2).run(unittest_discover())
|
||||
sys.exit(not result.wasSuccessful())
|
Loading…
Reference in New Issue