Skip to content

Commit

Permalink
tests: integration: more makefile commands
Browse files Browse the repository at this point in the history
  • Loading branch information
balta2ar committed Feb 20, 2022
1 parent eb4f961 commit 2a1c57d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
unit-test:
pytest

smoke-test:
rm -rf ./dist && \
python setup.py sdist bdist_wheel && \
docker build -t brotab-smoke -f smoke.Dockerfile . && \
docker run -it brotab-smoke

integration-test:
docker build -t brotab-integration -f jess.Dockerfile . && \
docker run -v "$(pwd):/brotab" -p 19222:9222 -p 14625:4625 -it --rm --cpuset-cpus 0 --memory 512mb -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY -v /dev/shm:/dev/shm brotab-integration

integration-run:
docker run -v "$(pwd):/brotab" -p 19222:9222 -p 14625:4625 -it --rm --cpuset-cpus 0 --memory 512mb -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY -v /dev/shm:/dev/shm brotab-integration

all:
echo ALL
Expand Down
3 changes: 2 additions & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Flask==2.0.2
requests==2.24.0
requests==2.24.0
psutil==5.8.0
4 changes: 2 additions & 2 deletions Dockerfile → smoke.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ FROM python:3.8

WORKDIR /app

COPY "requirements/base.txt" ./
RUN pip install --no-cache-dir -r "base.txt"
COPY "requirements/base.txt" /tmp/base.txt
RUN pip install --no-cache-dir -r "/tmp/base.txt"

COPY dist/* ./
COPY test_build_install_run.sh .
Expand Down
1 change: 0 additions & 1 deletion test_build_install_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ run bt active
run bt words
run bt text
run bt html

0 comments on commit 2a1c57d

Please sign in to comment.