Skip to content

Commit 123c590

Browse files
committed
do jaffle_shop clone in docker img and git pull as part of the test script
1 parent 7d084f1 commit 123c590

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,9 @@ RUN pip install dbt==0.21.1
2020
# I think it's intended for the forthcoming 1.0.0 dbt release?
2121
RUN pip install pytest-dbt-adapter==0.5.1
2222

23+
# dbt-sqlite overrides some stuff pertaining to 'docs generate'
24+
# so exercise it using jaffle_shop repo
25+
26+
RUN cd /root && git clone https://github.com/dbt-labs/jaffle_shop.git
27+
2328
ENTRYPOINT ["./run_tests.sh"]

run_tests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ pytest test/sqlite.dbtspec
1212
# dbt-sqlite overrides some stuff pertaining to 'docs generate'
1313
# so exercise it using jaffle_shop repo
1414

15-
cd /tmp
15+
cd /root/jaffle_shop
1616

17-
git clone https://github.com/dbt-labs/jaffle_shop.git
17+
git pull
1818

19-
cd /tmp/jaffle_shop
19+
mkdir -p /tmp/jaffle_shop
2020

2121
mkdir -p /root/.dbt
2222

0 commit comments

Comments
 (0)