Skip to content

Instantly share code, notes, and snippets.

@doaa-altarawy
Created June 29, 2018 21:29
Show Gist options
  • Save doaa-altarawy/ee2b5bfc0069d6de7fb3af5ddfe1ad82 to your computer and use it in GitHub Desktop.
Save doaa-altarawy/ee2b5bfc0069d6de7fb3af5ddfe1ad82 to your computer and use it in GitHub Desktop.
Example TravisCI yaml configuration file
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