I am facing an issue with Travis executing a bash script. Here is the build log, https://travis-ci.org/github/amCap1712/pljava/jobs/688535533 . The issue is occurring at the line when
chmod +x .travis/travis_setup_pljava.sh && .travis/travis_setup_pljava.sh is executed.
#!/usr/bin/env bash if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew services start postgresql /usr/local/opt/postgres/bin/createuser -s postgres else sudo chmod 777 /home/travis fi
but when i execute the statements
brew services start postgresql /usr/local/opt/postgres/bin/createuser -s postgres
separately in command line it works. Can someone help me with how to solve this issue?