travis: add more scenarios

Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
travis: fix postgresql install

We have to stop any potential running postgres instance before installing
another version of postgres otherwise the install might fail.

Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>