add extra environment 'ci' to do ci job in travis

1. use sqlite in test and development
2. use postgresql in ci and production