-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from fivetran/jm-updates
Jm updates
- Loading branch information
Showing
45 changed files
with
506 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
version: 2 | ||
|
||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/python:3.7.9-stretch | ||
|
||
steps: | ||
- checkout | ||
|
||
- run: | ||
run: setup_creds | ||
command: | | ||
echo $GCLOUD_SERVICE_KEY | base64 --decode --ignore-garbage > ${HOME}/gcloud-service-key.json | ||
- run: | ||
name: "Setup dbt" | ||
command: | | ||
python3 -m venv venv | ||
. venv/bin/activate | ||
pip install --upgrade pip setuptools | ||
pip install -r integration_tests/requirements.txt | ||
mkdir -p ~/.dbt | ||
cp integration_tests/ci/sample.profiles.yml ~/.dbt/profiles.yml | ||
- run: | ||
name: "Run Tests - Redshift" | ||
command: | | ||
. venv/bin/activate | ||
echo `pwd` | ||
cd integration_tests | ||
dbt deps | ||
dbt seed --target redshift --full-refresh | ||
dbt run --target redshift --full-refresh | ||
dbt test --target redshift | ||
- run: | ||
name: "Run Tests - Snowflake" | ||
command: | | ||
. venv/bin/activate | ||
echo `pwd` | ||
cd integration_tests | ||
dbt deps | ||
dbt seed --target snowflake --full-refresh | ||
dbt run --target snowflake --full-refresh | ||
dbt test --target snowflake | ||
- run: | ||
name: "Run Tests - BigQuery" | ||
environment: | ||
GCLOUD_SERVICE_KEY_PATH: "/home/circleci/gcloud-service-key.json" | ||
|
||
command: | | ||
. venv/bin/activate | ||
echo `pwd` | ||
cd integration_tests | ||
dbt deps | ||
dbt seed --target bigquery --full-refresh | ||
dbt run --target bigquery --full-refresh | ||
dbt test --target bigquery | ||
- save_cache: | ||
key: deps2-{{ .Branch }} | ||
paths: | ||
- "venv" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
config-version: 2 | ||
|
||
name: 'asana' | ||
version: '0.2.0' | ||
version: '0.3.0' | ||
|
||
require-dbt-version: [">=0.18.0", "<0.19.0"] | ||
require-dbt-version: [">=0.18.0", "<0.20.0"] | ||
|
||
models: | ||
asana: | ||
+schema: asana | ||
materialized: table | ||
intermediate: | ||
materialized: ephemeral | ||
|
||
vars: | ||
asana: | ||
project_task: "{{ ref('stg_asana_project_task') }}" | ||
project: "{{ ref('stg_asana_project') }}" | ||
section: "{{ ref('stg_asana_section') }}" | ||
story: "{{ ref('stg_asana_story') }}" | ||
tag: "{{ ref('stg_asana_tag') }}" | ||
task_follower: "{{ ref('stg_asana_task_follower') }}" | ||
task_section: "{{ ref('stg_asana_task_section') }}" | ||
task_tag: "{{ ref('stg_asana_task_tag') }}" | ||
task: "{{ ref('stg_asana_task') }}" | ||
team: "{{ ref('stg_asana_team') }}" | ||
user: "{{ ref('stg_asana_user') }}" | ||
project_task: "{{ ref('stg_asana__project_task') }}" | ||
project: "{{ ref('stg_asana__project') }}" | ||
section: "{{ ref('stg_asana__section') }}" | ||
story: "{{ ref('stg_asana__story') }}" | ||
tag: "{{ ref('stg_asana__tag') }}" | ||
task_follower: "{{ ref('stg_asana__task_follower') }}" | ||
task_section: "{{ ref('stg_asana__task_section') }}" | ||
task_tag: "{{ ref('stg_asana__task_tag') }}" | ||
task: "{{ ref('stg_asana__task') }}" | ||
team: "{{ ref('stg_asana__team') }}" | ||
user: "{{ ref('stg_asana__user') }}" |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.