From 79ddd36974eff1e3b22b8c0d2be5f4754a547410 Mon Sep 17 00:00:00 2001 From: Alexander Uralov Date: Wed, 26 Dec 2018 08:11:53 +0300 Subject: [PATCH] Travis CI was enabled --- .gitignore | 1 + .travis.yaml | 5 +++++ sms_counter/tests.py => tests.py | 5 +++-- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 .travis.yaml rename sms_counter/tests.py => tests.py (97%) diff --git a/.gitignore b/.gitignore index 090eda8..3c5e847 100644 --- a/.gitignore +++ b/.gitignore @@ -59,3 +59,4 @@ target/ # Virtualenv env/ +.python-version diff --git a/.travis.yaml b/.travis.yaml new file mode 100644 index 0000000..21f9f3a --- /dev/null +++ b/.travis.yaml @@ -0,0 +1,5 @@ +language: python +python: + - "3.6" +script: + - python tests.py \ No newline at end of file diff --git a/sms_counter/tests.py b/tests.py similarity index 97% rename from sms_counter/tests.py rename to tests.py index c86f783..4424414 100644 --- a/sms_counter/tests.py +++ b/tests.py @@ -1,4 +1,4 @@ -from unittest import TestCase, main +from unittest import TestCase from sms_counter import SMSCounter @@ -54,4 +54,5 @@ class SMSCounterTestCase(TestCase): if __name__ == '__main__': - main() + import unittest + unittest.main()