diff --git a/.circleci/config.yml b/.circleci/config.yml index dc276e2..401628d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,6 +22,16 @@ jobs: pip install -r integration_tests/requirements.txt mkdir -p ~/.dbt cp integration_tests/ci/sample.profiles.yml ~/.dbt/profiles.yml + - run: + name: "Run Tests - Postgres" + command: | + . venv/bin/activate + echo `pwd` + cd integration_tests + dbt deps + dbt seed --target postgres --full-refresh + dbt run --target postgres --full-refresh + dbt test --target postgres - run: name: "Run Tests - Spark" command: | diff --git a/README.md b/README.md index a25d0eb..e8e53ce 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ or open PRs against `master`. Check out on the best workflow for contributing to a package. ## Database Support -This package has been tested on BigQuery, Snowflake and Redshift. +This package has been tested on BigQuery, Snowflake, Redshift, Postgres, and Databricks. ## Resources: - Provide [feedback](https://www.surveymonkey.com/r/DQ7K7WW) on our existing dbt packages or what you'd like to see next diff --git a/dbt_project.yml b/dbt_project.yml index 01a478b..2308468 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,6 +1,6 @@ name: 'linkedin' -version: '0.3.0' +version: '0.3.1' config-version: 2 require-dbt-version: [">=0.18.0", "<0.20.0"] diff --git a/integration_tests/ci/sample.profiles.yml b/integration_tests/ci/sample.profiles.yml index 26cbaf4..cb882f4 100644 --- a/integration_tests/ci/sample.profiles.yml +++ b/integration_tests/ci/sample.profiles.yml @@ -46,4 +46,15 @@ integration_tests: port: 443 connect_timeout: 60 connect_retries: 5 - threads: 4 \ No newline at end of file + threads: 4 + postgres: + type: postgres + host: "{{ env_var('CI_POSTGRES_DBT_HOST') }}" + user: "{{ env_var('CI_POSTGRES_DBT_USER') }}" + password: "{{ env_var('CI_POSTGRES_DBT_PASS') }}" + port: 5432 + dbname: "{{ env_var('CI_POSTGRES_DBT_DATABASE') }}" + schema: linkedin_integration_tests + threads: 8 + keepalives_idle: 0 + sslmode: prefer \ No newline at end of file diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index 0aec89f..87ed696 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -1,5 +1,5 @@ name: 'linkedin_integration_tests' -version: '0.2.0' +version: '0.3.1' profile: 'integration_tests' config-version: 2