[Add] travis.yml: create database for tests
This commit is contained in:
parent
a2679d706d
commit
024d5b7bb7
@ -11,6 +11,10 @@ services:
|
|||||||
- mysql
|
- mysql
|
||||||
- postgresql
|
- postgresql
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- mysql -e 'CREATE DATABASE vnpy;'
|
||||||
|
- psql -c 'create database vnpy;' -U postgres
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# todo: use python unittest
|
# todo: use python unittest
|
||||||
- pip install psycopg2 mongoengine pymysql # we should support all database in test environment
|
- pip install psycopg2 mongoengine pymysql # we should support all database in test environment
|
||||||
|
Loading…
Reference in New Issue
Block a user