Skip to content
Snippets Groups Projects
Commit 6bdf88cb authored by inso's avatar inso
Browse files

Run test throught setup.py test

parent be9f961d
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,6 @@ pyrcc5 -version
lrelease -version
python -m unittest discover --start-directory src/sakia/tests -t src
python setup.py test
if %errorlevel% neq 0 exit /b 1
\ No newline at end of file
......@@ -23,6 +23,5 @@ then
elif [ $TRAVIS_OS_NAME == "linux" ]
then
python setup.py build
cp $HOME/.pyenv/versions/$PYENV_PYTHON_VERSION/lib/libpython3.*m.so.1.0 build/exe.linux-x86_64-3.*/
fi
......@@ -14,5 +14,5 @@ then
sleep 3
fi
coverage run --source=sakia.core,sakia.gui,sakia.models python -m unittest discover --start-directory src/sakia/tests -t src
coverage run --source=sakia.core,sakia.gui,sakia.models python setup.py test
......@@ -3,11 +3,16 @@ from cx_Freeze import setup, Executable
from PyQt5 import QtCore
from os import listdir
from os.path import isfile, join
import unittest
#############################################################################
# preparation des options
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), 'src')))
if "test" in sys.argv:
runner = unittest.TextTestRunner().run(unittest.defaultTestLoader.discover(start_dir='sakia.tests',
pattern='test_*'))
sys.exit(not runner.wasSuccessful())
else:
print(sys.path)
print("Environnement:")
print(os.environ)
......@@ -95,8 +100,6 @@ options = {"path": sys.path,
"zip_includes": zipincludes
}
#############################################################################
# preparation des cibles
base = None
file_type=""
icon="sakia.png"
......@@ -112,8 +115,6 @@ target = Executable(
icon = icon,
)
#############################################################################
# creation du setup
setup(
name = "sakia",
version = "0.11.2",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment