Fixing postgres command
This commit is contained in:
parent
378b83307d
commit
d850d677da
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue