install dbt thingies in CI
This commit is contained in:
parent
f4769c2e55
commit
074ac0e2ce
1 changed files with 13 additions and 0 deletions
|
|
@ -34,6 +34,19 @@ steps:
|
|||
psql -h $POSTGRES_HOST -U $POSTGRES_USER -d postgres -c "CREATE DATABASE ci_${BUILD_SOURCEBRANCH#refs/heads/}"
|
||||
displayName: 'Create branch dedicated database'
|
||||
|
||||
- script: |
|
||||
python -m venv venv
|
||||
source venv/bin/activate
|
||||
pip install -r requirements.txt
|
||||
|
||||
displayName: 'Create python virtual environment'
|
||||
|
||||
- script: |
|
||||
source venv/bin/activate
|
||||
dbt deps
|
||||
|
||||
displayName: 'Install dbt deps'
|
||||
|
||||
- script: |
|
||||
cp ~/dbt-ci/.env .
|
||||
echo "POSTGRES_DATABASE=${BUILD_SOURCEBRANCH#refs/heads/}" >> .env
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue