11# Configuration variables
2- VERSION =1.0.3rc1
2+ VERSION =1.0.4
33PROJ_DIR? =$(shell pwd)
44VENV_DIR? =${PROJ_DIR}/.bldenv
55BUILD_DIR =${PROJ_DIR}/build
@@ -14,14 +14,33 @@ clean: clean_venv
1414 rm -fr ${DIST_DIR}
1515 rm -fr ${BUILD_DIR}
1616
17-
1817wheel : clean
1918 ${PYTHON_3} -m venv ${VENV_DIR}
2019 ${VENV_DIR} /bin/pip install --upgrade wheel dataclasses build
2120 ${VENV_DIR} /bin/python3 -m build
2221
22+ # Target to test dbt-oracle package in development environment.
23+ # This builds a wheel pkg from source in the current project directory and tests all dbt functionalities.
24+ adbs_local_env_test : wheel clean_venv
25+ ${PYTHON_3} -m venv ${VENV_DIR}
26+ ${VENV_DIR} /bin/pip install ${DIST_DIR} /dbt_oracle-${VERSION} -py3-none-any.whl
27+ cd dbt_adbs_test_project && ${VENV_DIR} /bin/dbt --version
28+ cd dbt_adbs_test_project && ${VENV_DIR} /bin/dbt debug --profiles-dir ./
29+ cd dbt_adbs_test_project && ${VENV_DIR} /bin/dbt run-operation drop_schema --args ' relation: ${DBT_ORACLE_SCHEMA}' --profiles-dir ./
30+ cd dbt_adbs_test_project && ${VENV_DIR} /bin/dbt deps --profiles-dir ./
31+ cd dbt_adbs_test_project && ${VENV_DIR} /bin/dbt seed --profiles-dir ./
32+ cd dbt_adbs_test_project && ${VENV_DIR} /bin/dbt run --profiles-dir ./
33+ cd dbt_adbs_test_project && ${VENV_DIR} /bin/dbt test --profiles-dir ./
34+ cd dbt_adbs_test_project && ${VENV_DIR} /bin/dbt test --profiles-dir ./
35+ cd dbt_adbs_test_project && ${VENV_DIR} /bin/dbt run --profiles-dir ./
36+ cd dbt_adbs_test_project && ${VENV_DIR} /bin/dbt snapshot --profiles-dir ./
37+ cd dbt_adbs_test_project && ${VENV_DIR} /bin/dbt snapshot --profiles-dir ./
38+ cd dbt_adbs_test_project && ${VENV_DIR} /bin/dbt docs generate --profiles-dir ./
39+ cd dbt_adbs_test_project && ${VENV_DIR} /bin/dbt clean --profiles-dir ./
40+
2341
2442# Target to test a dbt-oracle package from PyPI.
43+ # This installs a dbt-oracle from PyPI and tests all dbt functionalities
2544adbs_pypi_test : clean_venv
2645 ${PYTHON_3} -m venv ${VENV_DIR}
2746 ${VENV_DIR} /bin/pip install dbt-oracle==${VERSION}
0 commit comments