diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 00000000..34a1bebf --- /dev/null +++ b/.coveragerc @@ -0,0 +1,9 @@ +# .coveragerc to control coverage + +[run] +branch = True + +source = . + +[html] +directory = htmlcov diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..89437a9d --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.coverage +shippable/ diff --git a/README.md b/README.md index ec522d27..0f675189 100755 --- a/README.md +++ b/README.md @@ -2,3 +2,5 @@ Python Sample ===================== Simple Python sample with tests using Nose and Coverage. + +This sample is built for Shippable, a docker based continuous integration and deployment platform. diff --git a/shippable.yml b/shippable.yml index 3bdcdf82..54532ec3 100755 --- a/shippable.yml +++ b/shippable.yml @@ -1,7 +1,18 @@ language: python - +build_image: shippableimages/ubuntu1204_python python: - - 2.7 + # - 2.6 + - 2.7 + #- 3.2 + #- 3.3 + #- 3.4 + #- pypy +env: + matrix: + - secure: O6dIGbm1+lZkEN8ZQ3bqB2fSx/MlFguTlnkjmFtTRT4XqF87nZFmhiEXpzzSpN/+dk/qy3cwYZdeM2W3bNxicFWx3pbJZaH0NT3I+TCGSgnf4w5GRl1PVQ3/8H6LdZRWA6g6pQaE9lJ3Qr1YzasRUCuXiHYLHs187y/KLQAhnfBoUnSzXEgW5xN+BqxtMGlB6M/dzSUyDuHb5EtJDMqTYpcJ7yVOjdSy4548kJKVY5izrjuQpOztdErK/H8MFhr5Vm6rN4kbdWhOefgYPD6xihGnn/MYOJERf+nfhQXLOMNSD4ELiYF/2jEQ0FASBZuzXOfb7NJkYj5LCrN9Hw3EpQ== + global: + - Foo=abr + - qq=qww install: - pip install -r requirements.txt @@ -10,8 +21,13 @@ install: before_script: - mkdir -p shippable/testresults - mkdir -p shippable/codecoverage + - echo $key2 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 \ No newline at end of file + - which python + - coverage run `which nosetests` test.py --with-xunit --xunit-file=shippable/testresults/nosetests.xml + - coverage xml -o shippable/codecoverage/coverage.xml + +notifications: + email: + - vidya@shippable.com