1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-23 07:50:49 +00:00

add dependence database

This commit is contained in:
astaxie 2016-01-08 23:10:50 +08:00
parent c59bc431e3
commit 1aff26cc31

View File

@ -12,6 +12,10 @@ env:
- ORM_DRIVER=sqlite ORM_SOURCE=$TRAVIS_BUILD_DIR/orm_test.db
- ORM_DRIVER=mysql ORM_SOURCE="root:@/orm_test?charset=utf8"
- ORM_DRIVER=postgres ORM_SOURCE="user=postgres dbname=orm_test sslmode=disable"
install:
- go get github.com/lib/pq
- go get github.com/go-sql-driver/mysql
- go get github.com/mattn/go-sqlite3
before_script:
- 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"