Skip to content

Commit

Permalink
Merge pull request #75 from dbt-labs/full-v1-compatibility
Browse files Browse the repository at this point in the history
v1 compatibility changes
  • Loading branch information
joellabes authored Dec 7, 2021
2 parents a265954 + 5de828a commit 65d4374
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 20 deletions.
26 changes: 13 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
. dbt_venv/bin/activate
pip install --upgrade pip setuptools
pip install --pre dbt
pip install --pre dbt-core dbt-postgres dbt-redshift dbt-snowflake dbt-bigquery
mkdir -p ~/.dbt
cp integration_tests/ci/sample.profiles.yml ~/.dbt/profiles.yml
Expand All @@ -36,21 +36,21 @@ jobs:
. dbt_venv/bin/activate
echo `pwd`
cd integration_tests
dbt deps
dbt seed --target redshift
dbt run --target redshift --full-refresh
dbt run --target redshift
dbt --warn-error deps
dbt --warn-error seed --target redshift
dbt --warn-error run --target redshift --full-refresh
dbt --warn-error run --target redshift
- run:
name: "Run Tests - Snowflake"
command: |
. dbt_venv/bin/activate
echo `pwd`
cd integration_tests
dbt deps
dbt seed --target snowflake
dbt run --target snowflake --full-refresh
dbt run --target snowflake
dbt --warn-error deps
dbt --warn-error seed --target snowflake
dbt --warn-error run --target snowflake --full-refresh
dbt --warn-error run --target snowflake
- run:
name: "Run Tests - BigQuery"
Expand All @@ -61,10 +61,10 @@ jobs:
. dbt_venv/bin/activate
echo `pwd`
cd integration_tests
dbt deps
dbt seed --target bigquery
dbt run --target bigquery --full-refresh
dbt run --target bigquery
dbt --warn-error deps
dbt --warn-error seed --target bigquery
dbt --warn-error run --target bigquery --full-refresh
dbt --warn-error run --target bigquery
- save_cache:
key: deps1-{{ .Branch }}
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
# segment v0.7.0

This release supports any version (minor and patch) of v1, which means far less need for compatibility releases in the future.

## Under the hood
- Change `require-dbt-version` to `[">=1.0.0", "<2.0.0"]`
- Bump dbt-utils dependency
- Replace `source-paths` and `data-paths` with `model-paths` and `seed-paths` respectively
- Rename `data` and `analysis` directories to `seeds` and `analyses` respectively
- Replace `dbt_modules` with `dbt_packages` in `clean-targets`

# segment v0.6.1
🚨 This is a compatibility release in preparation for `dbt-core` v1.0.0 (🎉). Projects using this version with `dbt-core` v1.0.x can expect to see a deprecation warning. This will be resolved in the next minor release.
12 changes: 6 additions & 6 deletions dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: 'segment'
version: '0.6.0'
require-dbt-version: [">=0.17.0", "<1.1.0"]
version: '0.7.0'
require-dbt-version: [">=1.0.0", "<2.0.0"]
config-version: 2

source-paths: ["models"]
analysis-paths: ["analysis"]
model-paths: ["models"]
analysis-paths: ["analyses"]
test-paths: ["tests"]
data-paths: ["data"]
seed-paths: ["seeds"]
macro-paths: ["macros"]

target-path: "target"
clean-targets:
- "target"
- "dbt_modules"
- "dbt_packages"

vars:
# location of raw data table
Expand Down
2 changes: 2 additions & 0 deletions integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: 'segment_integration_tests'
version: '1.0'
config-version: 2

seed-paths: ["seeds"]

profile: 'integration_tests'

vars:
Expand Down
2 changes: 1 addition & 1 deletion packages.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
packages:
- package: dbt-labs/dbt_utils
version: [">=0.4.0", "<0.8.0"]
version: [">=0.8.0", "<0.9.0"]
File renamed without changes.
File renamed without changes.

0 comments on commit 65d4374

Please sign in to comment.