1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 03:10:55 +00:00
This commit is contained in:
astaxie 2018-11-28 16:17:53 +08:00
parent 10729a1fc5
commit 4b656268d3

View File

@ -9,7 +9,6 @@ services:
- postgresql
- memcached
env:
- GO111MODULE=on
- ORM_DRIVER=sqlite3 ORM_SOURCE=$TRAVIS_BUILD_DIR/orm_test.db
- ORM_DRIVER=postgres ORM_SOURCE="user=postgres dbname=orm_test sslmode=disable"
before_install:
@ -43,6 +42,7 @@ install:
- go get -u github.com/go-redis/redis
before_script:
- psql --version
- export GO111MODULE=on
- 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"