diff --git a/app.py b/app.py index b3cf7d91..2671015e 100644 --- a/app.py +++ b/app.py @@ -1,14 +1,10 @@ -class App(): - def __init__(self): - self.var1 = 15 +# This program adds two numbers - def calculate(self): - self.result = self.var1 * 4 + 2 +num1 = 1.5 +num2 = 6.3 - def retrieve(self): - return self.result +# Add two numbers +sum = float(num1) + float(num2) -if __name__ == "__main__": - app = App() - app.calculate() - print(app.retrieve) +# Display the sum +print('The sum of {0} and {1} is {2}'.format(num1, num2, sum)) diff --git a/shippable.yml b/shippable.yml index 34e81b8e..ce955d14 100755 --- a/shippable.yml +++ b/shippable.yml @@ -1,26 +1,7 @@ language: python -python: - - 2.6 - - 2.7 - - 3.2 - - 3.3 - - 3.4 - - pypy - -install: - - pip install -r requirements.txt - -# Make folders for the reports -before_script: - - mkdir -p shippable/testresults - - mkdir -p shippable/codecoverage - -script: - - nosetests test.py --with-xunit --xunit-file=shippable/testresults/nosetests.xml - - which python && coverage run --branch test.py - - which python && coverage xml -o shippable/codecoverage/coverage.xml test.py -notifications: - email: - - exampleone@org.com +ci: + - python app.py + +