Beego/.travis.yml

19 lines
621 B
YAML
Raw Normal View History

2016-01-08 07:34:02 +00:00
language: go
go:
- 1.5.1
services:
- redis-server
- mysql
- postgresql
- memcached
env:
2016-01-08 15:00:22 +00:00
- 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"
2016-01-08 07:34:02 +00:00
before_script:
2016-01-08 15:00:22 +00:00
- 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"