[Add] travis.yml: create database for tests

This commit is contained in:
nanoric 2019-04-14 06:19:10 -04:00
parent a2679d706d
commit 024d5b7bb7

View File

@ -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