diff --git a/appveyor.yml b/appveyor.yml index 14f12227..5511872e 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -17,6 +17,8 @@ environment: MYSQL_PWD: Password12! install: + - ps: psql -d "postgresql://$ENV:VNPY_TEST_POSTGRESQL_USER:$ENV:VNPY_TEST_POSTGRESQL_PASSWORD@localhost" -c "create database vnpy;" + - ps: . "C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql" -u $ENV:VNPY_TEST_MYSQL_USER -e 'CREATE DATABASE vnpy;' - python -m pip install --upgrade pip wheel setuptools build_script: @@ -26,11 +28,6 @@ build_script: - pip install -r requirements.txt - pip install . -before_test: - - ps: echo psql -d "postgresql://$ENV:VNPY_TEST_POSTGRESQL_USER:$ENV:VNPY_TEST_POSTGRESQL_PASSWORD@localhost" -c "create database vnpy;" - - ps: psql -d "postgresql://$ENV:VNPY_TEST_POSTGRESQL_USER:$ENV:VNPY_TEST_POSTGRESQL_PASSWORD@localhost" -c "create database vnpy;" - - ps: . "C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql" -u $ENV:VNPY_TEST_MYSQL_USER -e 'CREATE DATABASE vnpy;' - test_script: - cd tests; source travis_env.sh; - python test_all.py