From eaacebde1bfbb8c7e784f53fe1adefda70656b27 Mon Sep 17 00:00:00 2001 From: nanoric Date: Thu, 8 Aug 2019 14:45:16 +0800 Subject: [PATCH] [Mod] update .travis.yaml --- .travis.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index e300d52c..10ca263c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,12 +4,15 @@ dist: xenial # required for Python >= 3.7 (travis-ci/travis-ci#9069) cache: pip -env: - - VNPY_BUILD_OES=0 - git: depth: 1 +env: + - > + VNPY_BUILD_PARALLEL=1 + VNPY_BUILD_CTP=1 + VNPY_BUILD_OES=1 + python: - "3.7" @@ -21,9 +24,10 @@ services: before_script: - psql -d postgresql://postgres:${VNPY_TEST_POSTGRESQL_PASSWORD}@localhost -c "create database vnpy;" - mysql -u root --password=${VNPY_TEST_MYSQL_PASSWORD} -e 'CREATE DATABASE vnpy;' + - source ci/env.sh; script: - - cd tests; source travis_env.sh; + - cd tests; - python test_all.py matrix: @@ -92,5 +96,6 @@ matrix: - bash ./install_osx.sh before_script: [] script: - - cd tests; source travis_env.sh; + - source ci/env.sh; + - cd tests; - VNPY_TEST_ONLY_SQLITE=1 python3 test_all.py