From 422d1a0acd9fc47ff39c68af165b55861de659c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Mar=C3=ADn?= Date: Thu, 26 Mar 2020 16:49:53 +0100 Subject: [PATCH] Try to initialize in the same command as the creation --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1bbb0fb..0320fe1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,8 +28,7 @@ script: - if [[ $POSTGRESQL_VERSION != '12' ]]; then sudo apt-get install -y postgresql-plpython-$POSTGRESQL_VERSION python python-redis; else sudo apt-get install -y postgresql-plpython3-12 python3 python3-redis; fi; - sudo pg_dropcluster --stop $POSTGRESQL_VERSION main - sudo rm -rf /etc/postgresql/$POSTGRESQL_VERSION /var/lib/postgresql/$POSTGRESQL_VERSION /var/ramfs/postgresql/$POSTGRESQL_VERSION - - sudo pg_createcluster -u postgres $POSTGRESQL_VERSION main -- --auth-local trust --auth-host password - - sudo /etc/init.d/postgresql start $POSTGRESQL_VERSION || sudo journalctl -xe + - sudo pg_createcluster -u postgres $POSTGRESQL_VERSION main --start -- --auth-local trust --auth-host password - export PGPORT=$(pg_lsclusters | grep $POSTGRESQL_VERSION | awk '{print $3}') - make - sudo make install @@ -40,3 +39,4 @@ after_failure: - cat regression.out - cat regression.diffs - echo $PGPORT + - cat /var/log/postgresql/postgresql-$POSTGRESQL_VERSION-main.log