mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
* Hack around the "last migration doesn't stamp" Alembic bug This makes MySQL, Sqlite and Postgres work with a special hard coded rule. I'm hoping Alembic fixes the root cause eventually. * Running db upgrade twice in tests
11 lines
292 B
Bash
Executable File
11 lines
292 B
Bash
Executable File
#!/usr/bin/env bash
|
|
echo $DB
|
|
rm ~/.caravel/caravel_unittests.db
|
|
rm -f .coverage
|
|
export CARAVEL_CONFIG=tests.caravel_test_config
|
|
set -e
|
|
caravel/bin/caravel db upgrade
|
|
caravel/bin/caravel db upgrade # running twice on purpose as a test
|
|
caravel/bin/caravel version -v
|
|
python setup.py nosetests
|