diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..705561e4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM ubuntu:12.04 + +RUN mkdir -p /home/shippable +ADD . /home/shippable +RUN ls -al /home/shippable diff --git a/README.md b/README.md index 0f675189..db599227 100755 --- a/README.md +++ b/README.md @@ -4,3 +4,6 @@ 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. +asdfdasfasd +asdfdasfasd +asdfdasfasd diff --git a/shippable.yml b/shippable.yml old mode 100755 new mode 100644 index c8f53ded..dc019c4e --- a/shippable.yml +++ b/shippable.yml @@ -2,26 +2,60 @@ language: python python: - 2.6 - - 2.7 - - 3.2 - - 3.3 - - 3.4 - - pypy + +#env: +# secure: WM9YEelDeKTKwipdJUtfXSkVgT6wyA6VPrVUT20QrhiuxZIluUcMYIrz+0kVk/Y3YgfbQRigQ43cWv4q+Sr253KzJMOqZAs/am33Ut8uLTboN8Hjyb7Y8PRK1B0Wlus+Cku3A0Ub4kXcCmOs00nGdlZNeiOq8wt9N/m2WSQNlZcpXDQZYd0kX7EvfcZiT107hbbhMy87Nv5Z/8UySEcO/CaRz4E4oevn3jwhDyCFWsyn0s1jFa8laQ6Vst+DBGfdd9aBC8sCUgpswWVlkamS9iehriqYtaKCkoiGWoN/QMzp7euSMgI00IwB7Gi6PPbyiy0hOV+KdyZpXsX+aotIwA== + +before_install: + - echo "BEFORE INSTALL" + +services: + - mysql + - mongodb install: - pip install -r requirements.txt # Make folders for the reports before_script: + - env + - echo $SHIPPABLE_POSTGRES_CMD - mkdir -p shippable/testresults - mkdir -p shippable/codecoverage - + - echo $MYENV + - date +"%s" + - git log --since=$LAST_SUCCESSFUL_BUILD_TIMESTAMP + - echo $Foo + - echo $Bar +# - git log --pretty='%s (%h: %an)' --since=$LAST_SUCCESSFUL_BUILD_TIMESTAMP + 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 - - + - mkdir -p vendor + - mkdir -p shippable/buildoutput + - echo 'build output file' > shippable/buildoutput/output.txt + - echo 'this is some file' > vendor/file.txt + - ls -al + +after_script: + - echo "AFTER _SCRIPT" + - ls -al + - cp -vr vendor/* ./shippable/buildoutput + +after_success: + - echo "AFTR _SUCCESS" + +after_failure: + - echo "AFTER_FAILURE" + +#archive: true notifications: email: - - exampleone@org.com + - devashish+notify1@shippable.com + +integrations: + hub: + - integrationName: hub + type: quay.io