mirror of
https://github.com/dbt-labs/dbt-project-evaluator.git
synced 2025-12-18 02:11:27 +00:00
24 lines
459 B
Bash
Executable File
24 lines
459 B
Bash
Executable File
#!/bin/bash
|
|
VENV="venv/bin/activate"
|
|
|
|
if [[ ! -f $VENV ]]
|
|
then
|
|
python3 -m venv venv
|
|
. $VENV
|
|
|
|
pip install --upgrade pip setuptools "dbt-$1" dbt-core
|
|
|
|
fi
|
|
|
|
. $VENV
|
|
|
|
cd integration_tests
|
|
dbt deps --target $1 || exit 1
|
|
dbt build -x --target $1 --full-refresh || exit 1
|
|
|
|
# test with the second project
|
|
cd ../integration_tests_2
|
|
dbt deps --target $1 || exit 1
|
|
dbt seed --full-refresh --target $1 || exit 1
|
|
dbt run -x --target $1 --full-refresh || exit 1
|