diff --git a/README.md b/README.md index ec522d27..0bc4573a 100755 --- a/README.md +++ b/README.md @@ -2,3 +2,9 @@ Python Sample ===================== Simple Python sample with tests using Nose and Coverage. + + + + +[![Build Status](https://apibeta.shippable.com/projects/5420089b76d0c288e441e5ee/badge?branchName=master)](https://appbeta.shippable.com/projects/5420089b76d0c288e441e5ee/builds/latest) +#test diff --git a/requirements.txt b/requirements.txt index a6c88f59..742e57eb 100755 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -nose -coverage +#nose + diff --git a/shippable.yml b/shippable.yml index c27ea259..16aeadb0 100755 --- a/shippable.yml +++ b/shippable.yml @@ -1,28 +1,55 @@ language: python +#build_image: drydock/u14pytpls:prod +#build_image: shippable/minv2:beta python: - #- 2.6 - #- 2.7 + - 2.6 + - 2.7 - 3.2 - 3.3 - #- 3.4 - #- pypy + - 3.4 + - 3.5 + - pypy + - pypy3 +before_install: + # - source ~/.rvm/scripts/rvm && rvm use 1.9. + - if [[ $SHIPPABLE_PYTHON == '3.2' ]]; then pip install coverage==3.7.1 codecov ; fi + - echo $SHIPPABLE_PYTHON + install: - pip install -r requirements.txt - # Make folders for the reports before_script: - mkdir -p shippable/testresults - mkdir -p shippable/codecoverage - + - git --version + - python --version + 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 - - echo $BUILD_NUMBER + - echo $BUILD_NUMBER + - echo $BUILD_URL + - echo $BRANCH + +archive: true + + +matrix: + allow_failures: + - python: 3.5 + - python: pypy + +notifications: + email: + recipients: + - vidya@shippable.com + - exampletwo@org.com + on_success: change + on_failure: always + -notifications: - email: false