1
1
# Configuration variables
2
- VERSION =1.0.3rc1
2
+ VERSION =1.0.4
3
3
PROJ_DIR? =$(shell pwd)
4
4
VENV_DIR? =${PROJ_DIR}/.bldenv
5
5
BUILD_DIR =${PROJ_DIR}/build
@@ -14,14 +14,33 @@ clean: clean_venv
14
14
rm -fr ${DIST_DIR}
15
15
rm -fr ${BUILD_DIR}
16
16
17
-
18
17
wheel : clean
19
18
${PYTHON_3} -m venv ${VENV_DIR}
20
19
${VENV_DIR} /bin/pip install --upgrade wheel dataclasses build
21
20
${VENV_DIR} /bin/python3 -m build
22
21
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
+
23
41
24
42
# Target to test a dbt-oracle package from PyPI.
43
+ # This installs a dbt-oracle from PyPI and tests all dbt functionalities
25
44
adbs_pypi_test : clean_venv
26
45
${PYTHON_3} -m venv ${VENV_DIR}
27
46
${VENV_DIR} /bin/pip install dbt-oracle==${VERSION}
0 commit comments