Skip to content

Instantly share code, notes, and snippets.

@marsam
Created June 23, 2013 18:47
Show Gist options
  • Select an option

  • Save marsam/5846060 to your computer and use it in GitHub Desktop.

Select an option

Save marsam/5846060 to your computer and use it in GitHub Desktop.
example python .travis.yml
# Tips:
# * [ci skip] in commits messages
# * https://secure.travis-ci.org/:username/:project.png
# * Use travislint
language: python
python:
- '2.6'
- '2.7'
- '3.2'
env:
- DJANGO=1.3 DB=postgres
- DJANGO=1.3 DB=mysql
- DJANGO=1.4 DB=postgres
- DJANGO=1.4 DB=mysql
# Comand to install dependencies
install:
- pip install Django=$DJANGO --use-mirrors
- pip install . --use-mirrors
- pip install -r requirements.txt --use-mirrors
before_script: echo 'Hello'
after_script: echo 'Bye'
# command to run test
scripts: python manage.py test
notifications:
email:
recipients:
- example@example.com
- another.example@example.com
on_success: [always|never|change]
on_failure: [always|never|change]
irc:
channels:
- 'irc.freenode.net#python.pe'
on_success: [always|never|change]
on_failure: [always|never|change]
webhooks: my-domain.com/travisci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment