From 8ff166a315678791ecac720a54a5e9fa12c9d185 Mon Sep 17 00:00:00 2001 From: nanoric Date: Wed, 27 Mar 2019 04:21:25 -0400 Subject: [PATCH] [New] travis-ci: use unittest to check if all module were built successfully. --- .travis.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index b2c8936d..9386cf9f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,10 @@ dist: xenial # required for Python >= 3.7 (travis-ci/travis-ci#9069) python: - "3.7" +script: + # todo: use python unittest + - mkdir run; cd run; python ../tests/load_all.py + matrix: include: - name: "code quality analysis: flake8" @@ -25,9 +29,6 @@ matrix: 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" before_install: @@ -42,9 +43,6 @@ matrix: - sudo update-alternatives --install /usr/bin/gcc cc /usr/bin/gcc-8 90 # Linux install script - bash ./install.sh - 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-7" before_install: @@ -59,7 +57,3 @@ matrix: - sudo update-alternatives --install /usr/bin/gcc cc /usr/bin/gcc-7 90 # Linux install script - bash ./install.sh - script: - # todo: use python unittest - - mkdir run; cd run; python -c "import vnpy.api.ctp.vnctpmd; import vnpy.api.oes.vnoes; exit(0);" -