Skip to content

Instantly share code, notes, and snippets.

@craiga
Last active July 28, 2018 11:48
Show Gist options
  • Save craiga/9414a95d2f295b9d47115a3f509a2eef to your computer and use it in GitHub Desktop.
Save craiga/9414a95d2f295b9d47115a3f509a2eef to your computer and use it in GitHub Desktop.
Travis configuration for new Django projects
language: python
python:
- "3.4"
- "3.5"
- "3.5-dev"
- "3.6"
- "3.6-dev"
install:
- pip install pipenv
- pipenv install --dev
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- pipenv run pycodestyle .
- pipenv run pydocstyle
- find . -iname "*.py" | xargs pipenv run pylint
- pipenv run python manage.py test
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
notifications:
email:
on_success: change
on_failure: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment