Skip to content

Instantly share code, notes, and snippets.

@discort
Created August 31, 2016 11:10
Show Gist options
  • Save discort/b6790608dfe521edad53b94639a89d64 to your computer and use it in GitHub Desktop.
Save discort/b6790608dfe521edad53b94639a89d64 to your computer and use it in GitHub Desktop.
Example of travis config - https://github.com/madflojo/blog
language: python
python:
- 2.7
services:
- docker
hosts:
- feed.bencane.com
- bencane.com
install:
- docker build -t blog .
- docker run -d -p 127.0.0.1:80:80 --name blog blog
before_script:
- pip install -r requirements.txt
- pip install mock
- pip install requests
- pip install feedparser
- pip install coverage
- pip install coveralls
script:
- docker ps | grep -q blog
- python tests.py
- coverage run tests.py
after_success:
coveralls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment