Fixing postgres command

This commit is contained in:
kevgliss 2015-07-23 09:54:38 -07:00
parent 378b83307d
commit d850d677da
2 changed files with 3 additions and 10 deletions

View File

@ -15,7 +15,8 @@ env:
install:
- make develop dev-postgres
before_script:
- psql -c "create database lemur; create user lemur with password 'lemur;'" -U postgres
- psql -c "create database lemur;" -U postgres
- psql -c "create user lemur with password 'lemur;'" -U postgres
- npm install -g bower
script:
- make lint

View File

@ -29,14 +29,6 @@ def py_lint(files_modified):
return report.total_errors != 0
def js_lint(files_modified):
has_errors = False
if os.system('node_modules/.bin/jshint src/sentry'):
has_errors = True
return has_errors
def main():
from flake8.hooks import run
@ -46,7 +38,7 @@ def main():
files_modified = filter(lambda x: os.path.exists(x), files_modified)
if any((py_lint(files_modified), js_lint(files_modified))):
if py_lint(files_modified):
return 1
return 0