diff --git a/Makefile b/Makefile index d842cb9..522e05d 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ test: ## Run the integration tests. @./run_test.sh $(target) .PHONY: test_tox -test: ## Run the integration tests with tox +test_tox: ## Run the integration tests with tox @\ tox -e dbt_integration_$(target) @@ -13,8 +13,10 @@ test: ## Run the integration tests with tox dev: ## Installs dbt-* packages in develop mode along with development dependencies. @\ echo "Install dbt-$(target)..."; \ - python -m pip install --upgrade pip setuptools; \ - python -m pip install dbt-core "dbt-$(target)"; + python3 -m venv .venv; \ + .venv/bin/python -m ensurepip; \ + .venv/bin/python -m pip install --upgrade pip setuptools; \ + .venv/bin/python -m pip install dbt-core "dbt-$(target)"; .PHONY: setup-db setup-db: ## Setup Postgres database with docker-compose for system testing. diff --git a/run_test.sh b/run_test.sh index e19bc3d..f551d0c 100755 --- a/run_test.sh +++ b/run_test.sh @@ -2,7 +2,6 @@ echo `pwd` cd integration_tests -cp ci/sample.profiles.yml profiles.yml dbt --warn-error deps --target $1 || exit 1 dbt --warn-error run-operation create_source_table --target $1 || exit 1