From 024d5b7bb7ea7e03f1c007229da00f5ed49f865d Mon Sep 17 00:00:00 2001 From: nanoric Date: Sun, 14 Apr 2019 06:19:10 -0400 Subject: [PATCH] [Add] travis.yml: create database for tests --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 3ee3b4cc..89c989b5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,10 @@ services: - mysql - postgresql +before_script: + - mysql -e 'CREATE DATABASE vnpy;' + - psql -c 'create database vnpy;' -U postgres + script: # todo: use python unittest - pip install psycopg2 mongoengine pymysql # we should support all database in test environment