diff --git a/README.md b/README.md index 8f817b75..16a61b5f 100755 --- a/README.md +++ b/README.md @@ -5,3 +5,23 @@ Simple Python sample with tests using Nose and Coverage. This sample is built for Shippable, a docker based continuous integration and deployment platform. change 1 in testing branch + + [![Run Status](https://api.shippable.com/projects/558b1fbaedd7f2c05238735d/badge?branch=noMatrix)](https://app.shippable.com/projects/558b1fbaedd7f2c05238735d) + + [![Coverage Badge](https://api.shippable.com/projects/558b1fbaedd7f2c05238735d/coverageBadge?branch=noMatrix)](https://app.shippable.com/projects/558b1fbaedd7f2c05238735d) + + +beta: + [![Run Status](https://apibeta.shippable.com/projects/564e6fb2d78fc6fc59652b5e/badge?branch=noMatrix)](https://beta.shippable.com/projects/564e6fb2d78fc6fc59652b5e) + [![Coverage Badge](https://apibeta.shippable.com/projects/564e6fb2d78fc6fc59652b5e/coverageBadge?branch=noMatrix)](https://beta.shippable.com/projects/564e6fb2d78fc6fc59652b5e) + +beta2: + [![Run Status](https://api.qhode.com/projects/57d1e17c5aae6c100052a705/badge?branch=noMatrix)](https://qhode.com/projects/57d1e17c5aae6c100052a705) + + [![Coverage Badge](https://api.qhode.com/projects/57d1e17c5aae6c100052a705/coverageBadge?branch=noMatrix)](https://qhode.com/projects/57d1e17c5aae6c100052a705) + +local: + +[![Run Status](http://50befe32.ngrok.io/projects/57e2ccdda2052818009345e9/badge?branch=noMatrix)](http://localhost:50001/projects/57e2ccdda2052818009345e9) + +[![Coverage Badge](http://50befe32.ngrok.io/projects/57e2ccdda2052818009345e9/coverageBadge?branch=noMatrix)](http://localhost:50001/projects/57e2ccdda2052818009345e9) diff --git a/app.py b/app.py index b3cf7d91..d6b25e3d 100644 --- a/app.py +++ b/app.py @@ -3,10 +3,18 @@ def __init__(self): self.var1 = 15 def calculate(self): + if self.var1 < 10: + print('foo') self.result = self.var1 * 4 + 2 def retrieve(self): return self.result + + def notcalled(self): + return 1 + + def anothernotcalled(self): + return 2 if __name__ == "__main__": app = App() diff --git a/shippable.yml b/shippable.yml index 34e81b8e..54d62cfe 100755 --- a/shippable.yml +++ b/shippable.yml @@ -1,26 +1,30 @@ language: python -python: - - 2.6 - - 2.7 - - 3.2 - - 3.3 - - 3.4 - - pypy - -install: - - pip install -r requirements.txt +#python: +# - 3.5 -# Make folders for the reports -before_script: - - mkdir -p shippable/testresults - - mkdir -p shippable/codecoverage +#env: +# global: +# - TEST_VAR=reallyAwesomeString -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 +matrix: + include: + - python: 3.5 -notifications: - email: - - exampleone@org.com +build: + # pre_ci_boot: + # image_name: manishas/myImage + # image_tag: latest + # pull: true + # options: "-e HOME=/root" + ci: + - pip install --disable-pip-version-check --upgrade pip + - pip install --upgrade wheel + - pip install -r requirements.txt + - mkdir -p shippable/testresults + - mkdir -p shippable/codecoverage + - 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 + on_success: + - pip install python-coveralls