Browse Source

Alterando scripts de QA para executar sempre na raiz do projeto

Signed-off-by: Eliseu Egewarth <eliseuegewarth@gmail.com>
pull/1933/head
Eliseu Egewarth 8 years ago
parent
commit
1f987c8c11
  1. 4
      .travis.yml
  2. 6
      scripts/django/check_qa.sh
  3. 5
      scripts/django/test_and_check_qa.sh

4
.travis.yml

@ -1,7 +1,7 @@
language: python
python:
- 3.4.3
- 3.5
services:
- postgresql
@ -20,7 +20,7 @@ script:
- ./manage.py migrate
- ./manage.py bower install
- py.test --create-db
# - ./test_and_check_qa.sh
# - ./scripts/django/test_and_check_qa.sh
addons:
hosts:

6
check_qa.sh → scripts/django/check_qa.sh

@ -1,7 +1,11 @@
#!/bin/bash
# Verifica se um breakpoint foi esquecido no código
me=`basename "$0"`
me="$0"
git_project_root=$(git rev-parse --show-toplevel)
cd ${git_project_root}
busca=`grep --color=auto --exclude=$me --exclude=ipython_log.py* -r -l "pdb.set_trace()" .`
if [ ! -z "$busca" ]

5
test_and_check_qa.sh → scripts/django/test_and_check_qa.sh

@ -2,6 +2,9 @@
# QA checks: run this before every commit
git_project_root=$(git rev-parse --show-toplevel)
cd ${git_project_root}
py.test
py.test --ds=sapl.crud.tests.settings sapl/crud/tests
./check_qa.sh
./scripts/django/check_qa.sh
Loading…
Cancel
Save