$ psql -c 'create database authentication-server_test;' -U postgres
ERROR: syntax error at or near "-"
LINE 1: create database authentication-server_test;
any idea? this has to do with the key value pair any fix for this?
Your problem is that this PostgreSQL identifier, not a key value pair:
authentication-server_test
The above needs quotes to be quoted so that PostgreSQL won’t try to interpret the - as an operator. Other wise, the latter will happen. Identifiers are quoted with double quotes so you need to this:
"authentication-server_test"
Into the database. You could escape the double quotes in your .travis.yml:
So as you can see its’ not a key value pair problem it’s only having to worry about the shell’s and YAML’s quoting needs (neither of which apply here).