From 870867f805e383ff732646fd0afa0fb2b569c136 Mon Sep 17 00:00:00 2001 From: strongbugman Date: Tue, 2 Jan 2018 22:42:32 +0800 Subject: [PATCH] Fix travis-ci config for codecov --- .travis.yml | 2 +- tests/test_pipelines.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index c05460e..2cfb9b2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,7 @@ services: - mysql - docker env: -- CI=TRAVIS TEST_MYSQL_SERVER="127.0.0.1" TEST_MYSQL_PORT=3306 TEST_MYSQL_USER=travis +- TEST_HOST=TRAVIS TEST_MYSQL_SERVER="127.0.0.1" TEST_MYSQL_PORT=3306 TEST_MYSQL_USER=travis TEST_MYSQL_PASSWORD="" TEST_MYSQL_DATABASE=test before_install: - mysql -e 'DROP DATABASE IF EXISTS test;' diff --git a/tests/test_pipelines.py b/tests/test_pipelines.py index 255bd16..0c5e076 100644 --- a/tests/test_pipelines.py +++ b/tests/test_pipelines.py @@ -85,7 +85,7 @@ async def test_item_json_dump_pipeline(): await pl.on_spider_close() # clean file - ci = os.getenv('CI', 'localhost') + ci = os.getenv('TEST_HOST', 'localhost') if ci == 'localhost': os.remove('./Titem.json')