Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
772a1c8
commit 06f068e
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 . |