Skip to content

Commit

Permalink
chore: update travis config for coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
d-Rickyy-b committed Jul 19, 2020
1 parent b51ea00 commit 4d3af61
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
language: python
sudo: require
python:
- "3.4"
- "3.6"
- "3.7"
- "3.8"
# command to install dependencies
install:
- pip install python-telegram-bot --upgrade
- pip install -r requirements.txt
- pip install coveralls

# command to run tests
script:
- pwd
- python -m compileall ./
- coverage run --omit='*/virtualenv/*,*/site-packages/*' -m unittest discover -s . -v -p "*_test.py"

# pychecker doesn't work as expected for me. Until now i'm going with just syntax checking all the files.
# - pychecker ./*.py
# create coverage for one python version
after_success:
- test $TRAVIS_PYTHON_VERSION == "3.8" && coveralls

notifications:
email: false
Expand Down

0 comments on commit 4d3af61

Please sign in to comment.