[Add] travis-ci: windows build

This commit is contained in:
nanoric 2019-03-19 07:31:28 -04:00
parent 7e6a2bc938
commit d99d486297

View File

@ -15,6 +15,20 @@ matrix:
script: script:
- flake8 - flake8
- name: "pip install under Windows"
os: "windows"
language: "cpp"
env:
- PATH=/c/Python37:/c/Python37/Scripts:$PATH
before_install:
- choco install python3 --version 3.7.2
install:
- pip install -r requirements.txt
- pip install .
script:
# todo: use python unittest
- mkdir run; cd run; python -c "import vnpy.api.ctp.vnctpmd; import vnpy.api.oes.vnoes; exit(0);"
- name: "pip install under Ubuntu: gcc-8" - name: "pip install under Ubuntu: gcc-8"
before_install: before_install:
# C++17 # C++17
@ -47,5 +61,5 @@ matrix:
- bash ./install.sh - bash ./install.sh
script: script:
# todo: use python unittest # todo: use python unittest
- mkdir run; cd run; python -c "import vnpy.api.ctp.vnctp; import vnpy.api.oes.vnoes; exit(0);" - mkdir run; cd run; python -c "import vnpy.api.ctp.vnctpmd; import vnpy.api.oes.vnoes; exit(0);"