Skip to content

Commit

Permalink
Adding .travis.yml for CI testing
Browse files Browse the repository at this point in the history
  • Loading branch information
audaciouscode committed May 7, 2017
1 parent 772a1c8 commit 06f068e
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .travis.yml
@@ -0,0 +1,35 @@
sudo: required

env:

language: python

python:
- 2.7

service:
- postgresql

addons:
postgresql: 9.5

before_install:
- export PYTHONPATH=$HOME/builds/audaciouscode/pr

install:
- pip install -r requirements.txt

before_script:
- psql -U postgres -c "create extension postgis"
- psql -U postgres -c "CREATE DATABASE travisci;"
- psql -U postgres -c "CREATE EXTENSION postgis" -d travisci
- psql -U postgres -c "CREATE EXTENSION postgis_topology" -d travisci

script:
- cd ..
- mv Purple-Robot-Starter-Site purple_robot_site
- cp purple_robot_site/local_settings.template.py purple_robot_site/local_settings.py
- python manage.py migrate
- python manage.py test
- pylint purple_robot
- bandit -r .

0 comments on commit 06f068e

Please sign in to comment.