diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..c60ece8 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +language: python +python: + - "2.7" + +# command to install dependencies +install: + - pip install -r requirements.txt + +script: + - pytest + +after_success: + - bash <(curl -s https://scripts.scantist.com/ci-travis-jar.sh) + diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..ed2193d --- /dev/null +++ b/setup.py @@ -0,0 +1,11 @@ +from setuptools import setup, find_packages + +package_name = "example-python" +package_version = "1.0.0" + +setup( + name=package_name, + version=package_version, + author="some author", + install_requires=["requests", "numpy", "Django==1.9.6"], +) diff --git a/test_sample.py b/test_sample.py new file mode 100644 index 0000000..f0b985b --- /dev/null +++ b/test_sample.py @@ -0,0 +1,7 @@ +import pytest + +def func(x): + return x + 2 + +def test_answer(): + assert func(3) == 5