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()