Created
June 29, 2018 21:29
-
-
Save doaa-altarawy/ee2b5bfc0069d6de7fb3af5ddfe1ad82 to your computer and use it in GitHub Desktop.
Example TravisCI yaml configuration file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: python | |
# turn off sudo | |
sudo: false | |
# python versions to be tested | |
matrix: | |
include: | |
- python: 2.7 | |
- python: 3.5 | |
- python: 3.6 | |
# will still build pull requests | |
branches: | |
only: | |
- master | |
notifications: | |
email: false | |
before_install: | |
# Get local information about the machine | |
- uname -a | |
- free -m | |
- df -h | |
- ulimit -a | |
# Install the library with test requirements | |
- pip install -e .[tests] | |
script: | |
# - pytest -v --cov=./ | |
# with doctest to test examples in doctrings | |
- pytest -v --doctest-modules --cov=./ | |
# if successful, track code coverage with codecov | |
after_success: | |
- codecov |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment