Skip to content

Instantly share code, notes, and snippets.

@LarsenClose
Last active January 30, 2021 21:26
Show Gist options
  • Save LarsenClose/3676b1dd69f2b231a88cade6aa431a40 to your computer and use it in GitHub Desktop.
Save LarsenClose/3676b1dd69f2b231a88cade6aa431a40 to your computer and use it in GitHub Desktop.
HPotter: current .travis.yml build/config files for testing
# Disable sudo to speed up the build
sudo: false
# Set the build language to Python
language: python
# Install the codecov pip dependency
install:
- pip install codecov
- pip install coverage
- pip install -r requirements.txt
# Run the unit test
script:
- coverage run --source src -m unittest discover
- coverage report -m
# Push the results back to codecov
after_success:
- coverage xml -i
- codecov
# Disable sudo to speed up the build
sudo: false
# Set the build language to Python
language: python
# Install the codecov pip dependency
install:
- pip install codecov
- pip install coverage
- pip install -r requirements.txt
# Run the unit test
script:
- coverage run --source hpotter -m unittest discover
# Push the results back to codecov
after_success:
- codecov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment