-
Notifications
You must be signed in to change notification settings - Fork 4
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 #40 from scivisum/circleci-project-setup
Circleci project setup
- Loading branch information
Showing
13 changed files
with
108 additions
and
56 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.1 | ||
|
||
jobs: | ||
unittests-py38: | ||
docker: | ||
- image: python:3.8.16-bullseye | ||
steps: | ||
- run: git config --global --add safe.directory /tmp/_circleci_local_build_repo | ||
- checkout | ||
- run: pip install -r dev_requirements.txt | ||
- run: pytest tests/unittests --verbose --full-trace | ||
unittests-py311: | ||
docker: | ||
- image: python:3.11.3-bullseye | ||
steps: | ||
- run: git config --global --add safe.directory /tmp/_circleci_local_build_repo | ||
- checkout | ||
- run: pip install -r dev_requirements.txt | ||
- run: pytest tests/unittests --verbose --full-trace | ||
integrationtests-py38: | ||
docker: | ||
- image: python:3.8.16-bullseye | ||
steps: | ||
- run: git config --global --add safe.directory /tmp/_circleci_local_build_repo | ||
- checkout | ||
- run: pip install -r dev_requirements.txt | ||
- run: pytest tests/integrationtests --verbose --full-trace | ||
integrationtests-py311: | ||
docker: | ||
- image: python:3.11.3-bullseye | ||
steps: | ||
- run: git config --global --add safe.directory /tmp/_circleci_local_build_repo | ||
- checkout | ||
- run: pip install -r dev_requirements.txt | ||
- run: pytest tests/integrationtests --verbose --full-trace | ||
e2etests-chrome106-py38: | ||
docker: | ||
- image: matseymour/chrome-python:106.0.5249.61-3.8.16 | ||
steps: | ||
- run: git config --global --add safe.directory /tmp/_circleci_local_build_repo | ||
- checkout | ||
- run: pip install -r dev_requirements.txt | ||
- run: tini -s -- xvfb-run pytest tests/e2etests --verbose --full-trace | ||
e2etests-chrome112-py311: | ||
docker: | ||
- image: matseymour/chrome-python:112.0.5615.121-3.11.3 | ||
steps: | ||
- run: git config --global --add safe.directory /tmp/_circleci_local_build_repo | ||
- checkout | ||
- run: pip install -r dev_requirements.txt | ||
- run: tini -s -- xvfb-run pytest tests/e2etests --verbose --full-trace | ||
workflows: | ||
test: | ||
jobs: | ||
- unittests-py38 | ||
- unittests-py311 | ||
- integrationtests-py38 | ||
- integrationtests-py311 | ||
- e2etests-chrome106-py38 | ||
- e2etests-chrome112-py311 |
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
FROM matseymour/chrome-python:106.0.5249.61-3.8.16 | ||
ENV PYTHONUNBUFFERED 1 | ||
|
||
RUN mkdir /code | ||
RUN mkdir /code/tests | ||
RUN mkdir /code/browserdebuggertools | ||
COPY dev_requirements.txt /code | ||
RUN pip install -r /code/dev_requirements.txt | ||
|
||
WORKDIR /code/tests |
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,10 @@ | ||
FROM matseymour/chrome-python:112.0.5615.121-3.11.3 | ||
ENV PYTHONUNBUFFERED 1 | ||
|
||
RUN mkdir /code | ||
RUN mkdir /code/tests | ||
RUN mkdir /code/browserdebuggertools | ||
COPY dev_requirements.txt /code | ||
RUN pip install -r /code/dev_requirements.txt | ||
|
||
WORKDIR /code/tests |
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,6 +1,5 @@ | ||
requests | ||
mock | ||
typing | ||
jinja2 | ||
websocket-client==0.56 | ||
cherrypy==17.4.2 | ||
requests==2.29.0 | ||
jinja2==3.1.2 | ||
pytest==7.3.1 | ||
websocket-client==1.5.1 | ||
cherrypy==18.8.0 |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
images=$(docker image list) | ||
for VERS in "106-3.8" "112-3.11" | ||
do | ||
matches=$(echo "$images" |grep browser-debugger-tools-test:$VERS) | ||
echo "########### Testing Dockerfile-$VERS ###########" | ||
if [ "$1" == "--build" ] || [ "$matches" == "" ]; then | ||
docker build -f Dockerfile-$VERS -t browser-debugger-tools-test:$VERS . | ||
fi | ||
done | ||
for VERS in "106-3.8" "112-3.11" | ||
do | ||
docker run -v $PWD/tests:/code/tests -v $PWD/browserdebuggertools:/code/browserdebuggertools \ | ||
browser-debugger-tools-test:$VERS tini -- xvfb-run pytest . | ||
done |
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
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
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