vnpy/appveyor.yml

68 lines
1.9 KiB
YAML
Raw Normal View History

2019-04-15 09:53:56 +00:00
clone_depth: 1
2019-04-15 13:14:23 +00:00
cache:
- '%LOCALAPPDATA%\pip\Cache'
2019-04-15 10:24:29 +00:00
configuration:
- pip
- sdist
2019-04-15 09:24:09 +00:00
image:
- Visual Studio 2017
services:
- mysql
- mongodb
- postgresql
environment:
2019-04-15 09:45:47 +00:00
PATH: C:\Python37-x64;C:\Python37-x64\Scripts;C:\Program Files\PostgreSQL\9.6\bin\;%PATH%
2019-04-15 10:24:29 +00:00
VNPY_TEST_MYSQL_DATABASE: vnpy
VNPY_TEST_MYSQL_HOST: localhost
VNPY_TEST_MYSQL_PORT: 3306
2019-04-15 09:24:09 +00:00
VNPY_TEST_MYSQL_USER: root
VNPY_TEST_MYSQL_PASSWORD: Password12!
2019-04-15 10:24:29 +00:00
2019-04-15 10:35:22 +00:00
VNPY_TEST_POSTGRESQL_DATABASE: vnpy
2019-04-15 10:24:29 +00:00
VNPY_TEST_POSTGRESQL_HOST: localhost
VNPY_TEST_POSTGRESQL_PORT: 5432
2019-04-15 09:24:09 +00:00
VNPY_TEST_POSTGRESQL_USER: postgres
VNPY_TEST_POSTGRESQL_PASSWORD: Password12!
2019-04-15 10:24:29 +00:00
VNPY_TEST_MONGODB_DATABASE: vnpy
VNPY_TEST_MONGODB_HOST: localhost
VNPY_TEST_MONGODB_PORT: 27017
2019-04-15 09:45:47 +00:00
MYSQL_PWD: Password12!
2019-04-15 09:24:09 +00:00
2019-04-15 10:03:07 +00:00
install:
2019-04-15 10:11:28 +00:00
- python -m pip install --upgrade pip wheel setuptools
before_build:
2019-04-15 10:14:27 +00:00
- ps: psql -d "postgresql://${ENV:VNPY_TEST_POSTGRESQL_USER}:${ENV:VNPY_TEST_POSTGRESQL_PASSWORD}@localhost" -c "create database vnpy;"
2019-04-15 10:10:29 +00:00
- ps: . "C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql" -u $ENV:VNPY_TEST_MYSQL_USER -e 'CREATE DATABASE vnpy;'
2019-04-15 09:24:09 +00:00
2019-04-15 10:24:29 +00:00
for:
- matrix:
only:
2019-04-15 10:25:14 +00:00
- configuration: pip
2019-04-15 10:24:29 +00:00
build_script:
- pip install psycopg2 mongoengine pymysql # we should support all database in test environment
2019-04-18 04:44:49 +00:00
- call install.bat
2019-04-15 10:24:29 +00:00
- pip install .
- matrix:
only:
2019-04-15 10:25:14 +00:00
- configuration: sdist
2019-04-15 10:24:29 +00:00
build_script:
- python setup.py sdist
- pip install psycopg2 mongoengine pymysql # we should support all database in test environment
- pip install --pre --extra-index-url https://rquser:ricequant99@py.ricequant.com/simple/ rqdatac
2019-04-15 10:24:29 +00:00
- pip install https://pip.vnpy.com/colletion/TA_Lib-0.4.17-cp37-cp37m-win_amd64.whl
- pip install https://pip.vnpy.com/colletion/ibapi-9.75.1-001-py3-none-any.whl
- ps: $name=(ls dist).name; pip install "dist/$name"
2019-04-15 09:24:09 +00:00
test_script:
- cd tests
- python test_all.py
2019-04-15 09:24:09 +00:00