mirror of https://github.com/interlegis/sapl.git
Browse Source
* Adiciona rotina de checagem de migração
Signed-off-by: Eliseu Egewarth <eliseuegewarth@gmail.com>
* Adiciona Campos sem gerar makemigrations
Signed-off-by: Eliseu Egewarth <eliseuegewarth@gmail.com>
* Move script check_migrations.sh para o estagio 'before_script'
Signed-off-by: Eliseu Egewarth <eliseuegewarth@gmail.com>
* Revert "Adiciona Campos sem gerar makemigrations"
This reverts commit c61154ec86
.
* Adding color for check failures
Signed-off-by: Eliseu Egewarth <eliseuegewarth@gmail.com>
pull/1416/head
Eliseu Egewarth
7 years ago
committed by
Edward
2 changed files with 18 additions and 0 deletions
@ -0,0 +1,17 @@ |
|||
#!/bin/bash |
|||
|
|||
python manage.py makemigrations --dry-run --exit |
|||
|
|||
MIGRATIONS=$? |
|||
|
|||
NC='\033[0m' |
|||
|
|||
if [ $MIGRATIONS -eq 0 ]; then |
|||
RED='\033[0;31m' |
|||
echo -e "${RED}You have unapplied code changes. run 'python manage.py makemigrations' before submitting your code...${NC}" |
|||
exit 1 |
|||
else |
|||
GREEN='\033[0;32m' |
|||
echo -e "Working normally..." |
|||
exit 0 |
|||
fi |
Loading…
Reference in new issue