This commit is contained in:
nanoric 2019-04-15 06:10:29 -04:00
parent 4ae7282883
commit b068685092

View File

@ -17,6 +17,8 @@ environment:
MYSQL_PWD: Password12! MYSQL_PWD: Password12!
install: 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 - python -m pip install --upgrade pip wheel setuptools
build_script: build_script:
@ -26,11 +28,6 @@ build_script:
- pip install -r requirements.txt - pip install -r requirements.txt
- pip install . - 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: test_script:
- cd tests; source travis_env.sh; - cd tests; source travis_env.sh;
- python test_all.py - python test_all.py