Skip to content

Instantly share code, notes, and snippets.

@efi-mk efi-mk/.travis.yml
Last active Sep 7, 2018

Embed
What would you like to do?
Travis example
sudo: required
language: python
python:
- "3.6"
services:
- postgresql
addons:
postgresql: "9.6"
cache:
- pip
install:
- pip install -r requirements.txt
- pip install coverage
script:
- ./manage.py collectstatic
- coverage run --source='.' manage.py test
- curl https://pre-commit.com/install-local.py | python -
- ./scripts/checks.sh
- mkdir ~/.aws
- openssl aes-256-cbc -K $encrypted_7675786280ef_key -iv $encrypted_7675786280ef_iv -in credentials.enc -out ~/.aws/credentials -d
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then ./scripts/test_production_data.sh ; fi # a pull request
deploy:
provider: script
script: scripts/travis_deploy.sh
on:
branch: master
after_success:
- bash <(curl -s https://codecov.io/bash)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.