PostgreSQL 9.3 does not work on createuser in Travis

This behavior from Travis CI is new:

$ sudo -u postgres createuser -p 5432 travis &>/dev/null Shall the new role be a superuser? (y/n)

The design dies before moving on, because it is waiting for user input, which it will never receive. My Travis configuration looks like this with the specified add-on 9.3. Line 72615655 is a pattern of failure, and build 72408935 is a successful build from two days ago with the same Travis configuration.

+4
source share
2 answers

Travis reports that this has been fixed: https://github.com/travis-ci/travis-ci/issues/4584

0
source

I have the same problem in Travis CI for PostgreSQL. By adding sudo: false, I solved the problem.

my.travis.yml

addons:
  postgresql: "9.4"

sudo: false
0
source

Source: https://habr.com/ru/post/1599698/


All Articles