Commit 579815e0 authored by Cédric OLIVIER's avatar Cédric OLIVIER
Browse files

Merge branch '11-fix-dbt-test-env' into 'master'

fix(dbt-test): add target arguments

Closes #11

See merge request to-be-continuous/dbt!44
parents 7c105170 22447b79
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -534,7 +534,7 @@ dbt-build-production:
  script:
    - mkdir -p ${DBT_PROJECT_DIR}/reports
    - dbt deps --project-dir "${DBT_PROJECT_DIR}" --profiles-dir "${DBT_PROFILES_DIR}"    
    - dbt test --project-dir "${DBT_PROJECT_DIR}" --profiles-dir "${DBT_PROFILES_DIR}" ${DBT_TEST_ARGS}
    - dbt test --project-dir "${DBT_PROJECT_DIR}" --profiles-dir "${DBT_PROFILES_DIR}" --target "${ENV_TARGET:-${DBT_TARGET}}" ${DBT_TEST_ARGS}
    - dbt_junit_report ${DBT_PROJECT_DIR}/target/run_results.json ${DBT_PROJECT_DIR}/reports/dbt-test.xunit.xml
  # keep build artifacts and test reports (see: https://docs.gitlab.com/ci/yaml/#artifactsreportsjunit)
  artifacts: