diff --git a/README.md b/README.md index 2b26a1c..a7f0a6d 100644 --- a/README.md +++ b/README.md @@ -2,5 +2,7 @@ Python PostgreSQL Sample [![Build ====================== Tests basic SQL commands using the psycopg2 driver for Python. + jun 10 -[![Build Status](https://apibeta.shippable.com/projects/5420089b76d0c288e441e5fa/badge?branchName=master)](https://appbeta.shippable.com/projects/5420089b76d0c288e441e5fa/builds/latest) + +[![Build Status](https://apibeta.shippable.com/projects/54d9b38291426fd6a78cd67f/badge?branchName=master)](https://appbeta.shippable.com/projects/54d9b38291426fd6a78cd67f/builds/latest) diff --git a/shippable.yml b/shippable.yml index fe26434..82755bd 100644 --- a/shippable.yml +++ b/shippable.yml @@ -3,6 +3,7 @@ language: python python: - 2.7 - 2.6 + install: - pip install -r requirements.txt @@ -11,6 +12,7 @@ addons: postgresql: "9.1" # Postgres binds to 127.0.0.1 by default and is started on boot. Default username is "postgres" with no password # Create a DB as part of before script to use it + before_script: - psql -c 'drop database if exists test;' -U postgres -w - psql -c "create database test;" -U postgres @@ -26,10 +28,14 @@ script: env: global: - FOO=fooval SHIPPABLE_POSTGRES_CMD='sudo -u postgres $SHIPPABLE_POSTGRES_BINARY -c config_file=/etc/postgresql/$SHIPPABLE_POSTGRES_VERSION/main/postgresql.conf -c fsync=off' + - secure: Frr0m4gvASImyseMvGe58LHWsh3DbEBz2NsySKSHcHGnIXps8xg6xjGXRKevxDsUrNIOywV9JJGBMaqxhWSJGRP7I0XWQ1+odHKMNMCp6bLSo+lCveairnndRgnievx7XMnah8oomHuMUoAehq201sQ4QUKJCBBFmpmeEt7o8F5WqyXNLdSqVbB4dJ8yMcrjjSOtXSYbVq90nkBwC2GqriSr9NKbGvcy/QI0zYSpllT7Oulj0tWjOIo+raUazWr/aNfyarAjrf3lTBJdkFxXzMYCS5ubLVdOIZUvWVotlv1PiH/igW9kEblzzNymJaRNkLYJsOn6NOIHAFKVsbGKxA== # - secure: e3IF2H+i8bq+GzgbMoR1WY5WAYqOYviZWWUQobtNAVW0Lq1N1EJURJ98L34vf7Yrsx9YBuaOGAcRFx7MDNyrNtmPkXtZVkODSBzRIwwwCO3D3wrSIig6QxvRGRmDMIIMFFTf92SRcu0WfwD+qe9aQSH5hDM5uqOQX7tsD+xScaiGF5ShvhrBjHZNOq7LlLwU1LpmJCj7RlwzCVGSqdUicAhhh5xBK+QmJkC6BQWJq9OZsNchwQKDmacDoyZbqrpSmclbkNuSG6x6EE0HZ/WKYbadCjxRMFtk0wVsQsfkMh42/jNMalkLDpMBfa+/3C6nwanXm0yfqdMdAi+IGv9xUA== #cache: true after_script: - cp README.md ./shippable + - echo $beta + + archive: true notifications: @@ -37,6 +43,6 @@ notifications: recipients: - buildsampletest@gmail.com on_success: always - on_failure: always + on_failure: change #build_image: shippable/minv2:beta diff --git a/test.py b/test.py index df9deba..9eae9ba 100644 --- a/test.py +++ b/test.py @@ -8,7 +8,7 @@ def test_db(self): pg = Postgres() pg.populate() count = pg.read() - self.failIf(count != 5) + self.failIf(count != 6) pg.disconnect()