From 65b716c699bd9f2aebe2d24fd4fd04a020ee6442 Mon Sep 17 00:00:00 2001 From: Pierre Tardy Date: Tue, 6 Dec 2016 17:14:24 +0100 Subject: [PATCH] temporarily disable pg tests as they need updated docker image --- .bbtravis.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.bbtravis.yml b/.bbtravis.yml index 33642da8ac6..8205fa2b9fd 100644 --- a/.bbtravis.yml +++ b/.bbtravis.yml @@ -33,8 +33,8 @@ env: - TWISTED=latest SQLALCHEMY=latest TESTS=trial BUILDBOT_TEST_DB_URL=mysql+mysqldb://travis@127.0.0.1/bbtest?storage_engine=InnoDB # Configuration that runs tests with real PostgreSQL database with pg8000 and psycopg2 drivers # psycopg2 uses Peer Authentication which is configured in the dockerfile, while pg8000 use md5 auth with dummy password - - TWISTED=latest SQLALCHEMY=latest TESTS=trial BUILDBOT_TEST_DB_URL=postgresql+psycopg2:///bbtest - - TWISTED=latest SQLALCHEMY=latest TESTS=trial 'BUILDBOT_TEST_DB_URL=postgresql+pg8000:///bbtest?user=buildbot&password=x' + #- TWISTED=latest SQLALCHEMY=latest TESTS=trial BUILDBOT_TEST_DB_URL=postgresql+psycopg2:///bbtest + #- TWISTED=latest SQLALCHEMY=latest TESTS=trial 'BUILDBOT_TEST_DB_URL=postgresql+pg8000:///bbtest?user=buildbot&password=x' # Test different versions of SQLAlchemy - TWISTED=15.5.0 SQLALCHEMY=0.8.0 TESTS=trial @@ -115,7 +115,8 @@ before_script: cmd: | sudo /etc/init.d/postgresql start # for pg8000 driver we can't use peer authentication or empty password, so set a dummy password - psql -d bbtest -c 'ALTER USER "buildbot" WITH PASSWORD '"'x'"';' + # This also serves as a way to wait that the database is ready + while ! psql -d bbtest -c 'ALTER USER "buildbot" WITH PASSWORD '"'x'"';' ; do sleep 1 ; done # Tests running commands script: