Skip to content

Commit 481a378

Browse files
committed
Let's use Docker to ensure we're testing consistently
1 parent 47d9e73 commit 481a378

24 files changed

+295
-12
lines changed

Dockerfile.2.7

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM python:2.7
2+
WORKDIR /app
3+
4+
COPY requirements.txt .
5+
6+
RUN python2.7 -m pip install -r requirements.txt
7+
8+
# need crontab
9+
COPY crontab/*.py crontab/
10+
# and need the tests too
11+
COPY tests/* crontab_tests/
12+
13+
# Note: needs access to Redis; assumes localhost:6879
14+
CMD ["python2.7", "-m", "crontab_tests.test_crontab"]

Dockerfile.3.10

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM python:3.10-bullseye
2+
3+
WORKDIR /app
4+
5+
COPY requirements.txt .
6+
7+
RUN python3.10 -m pip install -r requirements.txt
8+
9+
# need crontab
10+
COPY crontab/*.py crontab/
11+
# and need the tests too
12+
COPY tests/* crontab_tests/
13+
14+
# Note: needs access to Redis; assumes localhost:6879
15+
CMD ["python3.10", "-m", "crontab_tests.test_crontab"]

Dockerfile.3.11

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM python:3.11-bullseye
2+
3+
WORKDIR /app
4+
5+
COPY requirements.txt .
6+
7+
RUN python3.11 -m pip install -r requirements.txt
8+
9+
# need crontab
10+
COPY crontab/*.py crontab/
11+
# and need the tests too
12+
COPY tests/* crontab_tests/
13+
14+
# Note: needs access to Redis; assumes localhost:6879
15+
CMD ["python3.11", "-m", "crontab_tests.test_crontab"]

Dockerfile.3.3

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM python:3.3
2+
3+
WORKDIR /app
4+
5+
COPY requirements.txt .
6+
7+
RUN python3.3 -m pip install -r requirements.txt
8+
9+
# need crontab
10+
COPY crontab/*.py crontab/
11+
# and need the tests too
12+
COPY tests/* crontab_tests/
13+
14+
# Note: needs access to Redis; assumes localhost:6879
15+
CMD ["python3.3", "-m", "crontab_tests.test_crontab"]

Dockerfile.3.4

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM python:3.4
2+
3+
WORKDIR /app
4+
5+
COPY requirements.txt .
6+
7+
RUN python3.4 -m pip install -r requirements.txt
8+
9+
# need crontab
10+
COPY crontab/*.py crontab/
11+
# and need the tests too
12+
COPY tests/* crontab_tests/
13+
14+
# Note: needs access to Redis; assumes localhost:6879
15+
CMD ["python3.4", "-m", "crontab_tests.test_crontab"]

Dockerfile.3.5

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM python:3.5
2+
3+
WORKDIR /app
4+
5+
COPY requirements.txt .
6+
7+
RUN python3.5 -m pip install -r requirements.txt
8+
9+
# need crontab
10+
COPY crontab/*.py crontab/
11+
# and need the tests too
12+
COPY tests/* crontab_tests/
13+
14+
# Note: needs access to Redis; assumes localhost:6879
15+
CMD ["python3.5", "-m", "crontab_tests.test_crontab"]

Dockerfile.3.6

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM python:3.6
2+
3+
WORKDIR /app
4+
5+
COPY requirements.txt .
6+
7+
RUN python3.6 -m pip install -r requirements.txt
8+
9+
# need crontab
10+
COPY crontab/*.py crontab/
11+
# and need the tests too
12+
COPY tests/* crontab_tests/
13+
14+
# Note: needs access to Redis; assumes localhost:6879
15+
CMD ["python3.6", "-m", "crontab_tests.test_crontab"]

Dockerfile.3.7

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM python:3.7-bullseye
2+
3+
WORKDIR /app
4+
5+
COPY requirements.txt .
6+
7+
RUN python3.7 -m pip install -r requirements.txt
8+
9+
# need crontab
10+
COPY crontab/*.py crontab/
11+
# and need the tests too
12+
COPY tests/* crontab_tests/
13+
14+
# Note: needs access to Redis; assumes localhost:6879
15+
CMD ["python3.7", "-m", "crontab_tests.test_crontab"]

Dockerfile.3.8

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM python:3.8-bullseye
2+
3+
WORKDIR /app
4+
5+
COPY requirements.txt .
6+
7+
RUN python3.8 -m pip install -r requirements.txt
8+
9+
# need crontab
10+
COPY crontab/*.py crontab/
11+
# and need the tests too
12+
COPY tests/* crontab_tests/
13+
14+
# Note: needs access to Redis; assumes localhost:6879
15+
CMD ["python3.8", "-m", "crontab_tests.test_crontab"]

Dockerfile.3.9

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM python:3.9-bullseye
2+
3+
WORKDIR /app
4+
5+
COPY requirements.txt .
6+
7+
RUN python3.9 -m pip install -r requirements.txt
8+
9+
# need crontab
10+
COPY crontab/*.py crontab/
11+
# and need the tests too
12+
COPY tests/* crontab_tests/
13+
14+
# Note: needs access to Redis; assumes localhost:6879
15+
CMD ["python3.9", "-m", "crontab_tests.test_crontab"]

0 commit comments

Comments
 (0)