Skip to content

Commit

Permalink
Fix travis-ci config for codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
strongbugman committed Jan 2, 2018
1 parent 53ec37b commit 870867f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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;'
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit 870867f

Please sign in to comment.