vnpy/.travis.yml

35 lines
1.0 KiB
YAML
Raw Normal View History

2019-01-07 06:20:39 +00:00
language: python
2019-03-19 05:41:54 +00:00
dist: xenial # required for Python >= 3.7 (travis-ci/travis-ci#9069)
2019-01-07 06:20:39 +00:00
python:
2019-03-19 05:41:54 +00:00
- "3.7"
matrix:
include:
- name: "pip install under linux"
before_install:
2019-03-19 05:41:54 +00:00
# C++17
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
install:
# C++17
- sudo apt-get install -qq gcc-8 g++-8
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 90
- sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-8 90
- sudo update-alternatives --install /usr/bin/gcc cc /usr/bin/gcc-8 90
# Linux install script
- bash ./install.sh
script:
# todo: use python unittest
2019-03-19 10:12:47 +00:00
- mkdir run; cd run; python -c "import vnpy.api.ctp.vnctp; import vnpy.api.oes.vnoes; exit(0);"
2019-03-19 05:41:54 +00:00
- name: "code quality analysis: flake8"
before_install:
2019-03-19 05:41:54 +00:00
- pip install flake8
install:
- "" # prevent running "pip install -r requirements.txt"
script:
- flake8