Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
8 changes: 7 additions & 1 deletion shippable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ language: python
python:
- 2.7
- 2.6


install:
- pip install -r requirements.txt
Expand All @@ -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
Expand All @@ -26,17 +28,21 @@ 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:
email:
recipients:
- buildsampletest@gmail.com
on_success: always
on_failure: always
on_failure: change

#build_image: shippable/minv2:beta
2 changes: 1 addition & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down