show postgres versionn

This commit is contained in:
astaxie 2016-04-11 21:19:10 +08:00
parent ba3a1f8457
commit 1cac38b664
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ install:
- go get github.com/siddontang/ledisdb/ledis
- go get github.com/ssdb/gossdb/ssdb
before_script:
- psql --version
- sh -c "if [ '$ORM_DRIVER' = 'postgres' ]; then psql -c 'create database orm_test;' -U postgres; fi"
- sh -c "if [ '$ORM_DRIVER' = 'mysql' ]; then mysql -u root -e 'create database orm_test;'; fi"
- sh -c "if [ '$ORM_DRIVER' = 'sqlite' ]; then touch $TRAVIS_BUILD_DIR/orm_test.db; fi"