mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 05:20:53 +00:00
travis
This commit is contained in:
parent
10729a1fc5
commit
4b656268d3
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user