-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move integration tests to docker. * Updated integration tests docker file. * Fix the dai version passing argument. * Added E2E tests in docker. * Fix model names in integration tests.
- Loading branch information
Showing
5 changed files
with
67 additions
and
17 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
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,29 @@ | ||
# Use the official Python 3.8 image from the Docker Hub | ||
FROM python:3.8-slim | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
|
||
# Install git | ||
RUN apt-get update && apt-get install -y git | ||
|
||
RUN apt install libgl1-mesa-glx -y | ||
RUN apt-get install ffmpeg libsm6 libxext6 -y | ||
|
||
# Clone the depthai-nodes repository | ||
RUN git clone https://github.com/luxonis/depthai-nodes.git | ||
|
||
# Set the working directory to the cloned repository | ||
WORKDIR /app/depthai-nodes | ||
|
||
# Install the depthai-nodes package | ||
RUN pip install -e . | ||
|
||
# Install the development requirements | ||
RUN pip install -r requirements-dev.txt | ||
|
||
# Set the working directory to the tests directory | ||
WORKDIR /app/depthai-nodes/tests/end_to_end | ||
|
||
# Run the setup script and the tests | ||
ENTRYPOINT ["bash", "-c", "git checkout main && git pull && git checkout $BRANCH && git pull && pip install --extra-index-url $LUXONIS_EXTRA_INDEX_URL depthai==$DEPTHAI_VERSION && source <(python setup_camera_ips.py) && python main.py $FLAGS"] |
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,29 @@ | ||
# Use the official Python 3.8 image from the Docker Hub | ||
FROM python:3.8-slim | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
|
||
# Install git | ||
RUN apt-get update && apt-get install -y git | ||
|
||
RUN apt install libgl1-mesa-glx -y | ||
RUN apt-get install ffmpeg libsm6 libxext6 -y | ||
|
||
# Clone the depthai-nodes repository | ||
RUN git clone https://github.com/luxonis/depthai-nodes.git | ||
|
||
# Set the working directory to the cloned repository | ||
WORKDIR /app/depthai-nodes | ||
|
||
# Install the depthai-nodes package | ||
RUN pip install -e . | ||
|
||
# Install the development requirements | ||
RUN pip install -r requirements-dev.txt | ||
|
||
# Set the working directory to the tests directory | ||
WORKDIR /app/depthai-nodes/tests/integration_tests | ||
|
||
# Run the setup script and the tests | ||
ENTRYPOINT ["bash", "-c", "git checkout main && git pull && git checkout $BRANCH && git pull && pip install --extra-index-url $LUXONIS_EXTRA_INDEX_URL depthai==$DEPTHAI_VERSION && python -u main.py $FLAGS"] |
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