However when testing a web application you also have to setup a database – they have got good docs for that, but still I ran into problems.
What was my problem? In their description the database name is “myapp_test” and I believed that it would not matter and it could be anything like “Tracketytrack Test” I wanted. I got proven wrong. Apparently it has to be “myapp_test”. Also for some reason I had to add a manual call to “rake db:migrate” – I may check into this later. For your reference, here the relevant parts of my .travis.yml as a gist.
And here they are as well for your reference:
postgres: adapter: postgresql database: myapp_test username: postgres before_script: - "psql -c 'create database myapp_test;' -U postgres" - "rake db:migrate"