Skip to content

Instantly share code, notes, and snippets.

@efi-mk
Last active September 7, 2018 14:32
Show Gist options
  • Save efi-mk/be3b5cc2537fb26144f4fd1d6eaaaf0e to your computer and use it in GitHub Desktop.
Save efi-mk/be3b5cc2537fb26144f4fd1d6eaaaf0e to your computer and use it in GitHub Desktop.
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