Skip to content

Instantly share code, notes, and snippets.

@aaira-a
Created December 18, 2014 10:21
Show Gist options
  • Save aaira-a/a8dc5ce5a83bc3a1f1ea to your computer and use it in GitHub Desktop.
Save aaira-a/a8dc5ce5a83bc3a1f1ea to your computer and use it in GitHub Desktop.
patch python or django dependencies from pip on travis virtualenv
language: python
python:
- "3.4"
install: "pip install -r requirements.txt"
before_script:
- "rm /home/travis/virtualenv/python3.4/lib/python3.4/site-packages/django_mailbox/admin.py"
- "rm /home/travis/virtualenv/python3.4/lib/python3.4/site-packages/django_mailbox/models.py"
- "rm /home/travis/virtualenv/python3.4/lib/python3.4/site-packages/django_mailbox/migrations/0*.*"
- "cp $TRAVIS_BUILD_DIR/patches/django_mailbox/admin.py /home/travis/virtualenv/python3.4/lib/python3.4/site-packages/django_mailbox/"
- "cp $TRAVIS_BUILD_DIR/patches/django_mailbox/models.py /home/travis/virtualenv/python3.4/lib/python3.4/site-packages/django_mailbox/"
- "cp $TRAVIS_BUILD_DIR/patches/django_mailbox/migrations/*.* /home/travis/virtualenv/python3.4/lib/python3.4/site-packages/django_mailbox/migrations/"
- "cd $TRAVIS_BUILD_DIR"
script:
- "python manage.py test my_app"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment