Commit d91c386 1 parent ac78d49 commit d91c386 Copy full SHA for d91c386
File tree 3 files changed +52
-24
lines changed
3 files changed +52
-24
lines changed Original file line number Diff line number Diff line change 1
1
2
- version : 2
2
+ version : 2.1
3
3
4
4
jobs :
5
- build :
5
+
6
+ integration-postgres :
6
7
docker :
7
8
- image : circleci/python:3.6.3-stretch
8
9
- image : circleci/postgres:9.6.5-alpine-ram
9
10
10
11
steps :
11
12
- checkout
12
-
13
- - run :
14
- run : setup_creds
15
- command : |
16
- echo $BIGQUERY_SERVICE_ACCOUNT_JSON > ${HOME}/bigquery-service-key.json
17
-
18
- - restore_cache :
19
- key : deps2-{{ .Branch }}
20
-
21
13
- run :
22
14
name : " Run Tests - Postgres"
23
15
environment :
@@ -27,22 +19,58 @@ jobs:
27
19
POSTGRES_TEST_PORT : 5432
28
20
POSTGRES_TEST_DBNAME : circle_test
29
21
command : ./run_test.sh postgres
22
+ - store_artifacts :
23
+ path : ./logs
30
24
25
+ integration-redshift :
26
+ docker :
27
+ - image : circleci/python:3.6.3-stretch
28
+ steps :
29
+ - checkout
31
30
- run :
32
31
name : " Run Tests - Redshift"
33
32
command : ./run_test.sh redshift
33
+ - store_artifacts :
34
+ path : ./logs
34
35
36
+ integration-snowflake :
37
+ docker :
38
+ - image : circleci/python:3.6.3-stretch
39
+ steps :
40
+ - checkout
35
41
- run :
36
42
name : " Run Tests - Snowflake"
37
43
command : ./run_test.sh snowflake
38
-
44
+ - store_artifacts :
45
+ path : ./logs
46
+
47
+ integration-bigquery :
48
+ environment :
49
+ BIGQUERY_SERVICE_KEY_PATH : " /home/circleci/bigquery-service-key.json"
50
+ docker :
51
+ - image : circleci/python:3.6.3-stretch
52
+ steps :
53
+ - checkout
54
+ - run :
55
+ name : " Set up credentials"
56
+ command : echo $BIGQUERY_SERVICE_ACCOUNT_JSON > ${HOME}/bigquery-service-key.json
39
57
- run :
40
58
name : " Run Tests - BigQuery"
41
- environment :
42
- BIGQUERY_SERVICE_KEY_PATH : " /home/circleci/bigquery-service-key.json"
43
59
command : ./run_test.sh bigquery
60
+ - store_artifacts :
61
+ path : ./logs
44
62
45
- - save_cache :
46
- key : deps1-{{ .Branch }}
47
- paths :
48
- - " venv"
63
+ workflows :
64
+ version : 2
65
+ test-all :
66
+ jobs :
67
+ - integration-postgres
68
+ - integration-redshift :
69
+ requires :
70
+ - integration-postgres
71
+ - integration-snowflake :
72
+ requires :
73
+ - integration-postgres
74
+ - integration-bigquery :
75
+ requires :
76
+ - integration-postgres
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ integration_tests:
17
17
port : " {{ env_var('POSTGRES_TEST_PORT') | as_number }}"
18
18
dbname : " {{ env_var('POSTGRES_TEST_DBNAME') }}"
19
19
schema : dbt_utils_integration_tests_postgres
20
- threads : 1
20
+ threads : 5
21
21
22
22
redshift :
23
23
type : redshift
@@ -27,15 +27,15 @@ integration_tests:
27
27
dbname : " {{ env_var('REDSHIFT_TEST_DBNAME') }}"
28
28
port : " {{ env_var('REDSHIFT_TEST_PORT') | as_number }}"
29
29
schema : dbt_utils_integration_tests_redshift
30
- threads : 1
30
+ threads : 5
31
31
32
32
bigquery :
33
33
type : bigquery
34
34
method : service-account
35
35
keyfile : " {{ env_var('BIGQUERY_SERVICE_KEY_PATH') }}"
36
36
project : " {{ env_var('BIGQUERY_TEST_DATABASE') }}"
37
37
schema : dbt_utils_integration_tests_bigquery
38
- threads : 1
38
+ threads : 10
39
39
40
40
snowflake :
41
41
type : snowflake
@@ -46,4 +46,4 @@ integration_tests:
46
46
database : " {{ env_var('SNOWFLAKE_TEST_DATABASE') }}"
47
47
warehouse : " {{ env_var('SNOWFLAKE_TEST_WAREHOUSE') }}"
48
48
schema : dbt_utils_integration_tests_snowflake
49
- threads : 1
49
+ threads : 10
Original file line number Diff line number Diff line change @@ -24,5 +24,5 @@ if [[ ! -z $3 ]]; then _seeds="--select $3 --full-refresh"; fi
24
24
25
25
dbt deps --target $1
26
26
dbt seed --target $1 $_seeds
27
- dbt run --target $1 $_models
28
- dbt test --target $1 $_models
27
+ dbt run -x - -target $1 $_models
28
+ dbt test -x - -target $1 $_models
You can’t perform that action at this time.
0 commit comments