Created
August 31, 2016 11:10
-
-
Save discort/b6790608dfe521edad53b94639a89d64 to your computer and use it in GitHub Desktop.
Example of travis config - https://github.com/madflojo/blog
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 | |
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