Skip to content
Snippets Groups Projects

Integration Test Suggestions - Inttest

Merged I. Nüske requested to merge f-local-inttests-suggestions into f-local-inttests
Files
6
+ 6
2
@@ -11,11 +11,12 @@ RUN apt-get update && \
@@ -11,11 +11,12 @@ RUN apt-get update && \
ARG PYLIB
ARG PYLIB
RUN echo "PYLIB=${PYLIB}"
RUN echo "PYLIB=${PYLIB}"
COPY .docker/wait-for-it.sh /wait-for-it.sh
COPY .docker/wait-for-it.sh /wait-for-it.sh
 
COPY . /git
 
RUN pip install -r /git/requirements.txt
ADD https://gitlab.indiscale.com/api/v4/projects/97/repository/commits/${PYLIB} \
ADD https://gitlab.indiscale.com/api/v4/projects/97/repository/commits/${PYLIB} \
pylib_version.json
pylib_version.json
RUN git clone https://gitlab.indiscale.com/caosdb/src/caosdb-pylib.git && \
RUN git clone https://gitlab.indiscale.com/caosdb/src/caosdb-pylib.git && \
cd caosdb-pylib && git checkout ${PYLIB} && pip3 install .
cd caosdb-pylib && git checkout ${PYLIB} && pip3 install .
COPY . /git
# Delete .git because it is huge.
# Delete .git because it is huge.
RUN rm -r /git/.git
RUN rm -r /git/.git
@@ -30,5 +31,8 @@ CMD /wait-for-it.sh caosdb-server:10443 -t 500 -- \
@@ -30,5 +31,8 @@ CMD /wait-for-it.sh caosdb-server:10443 -t 500 -- \
# ... install pylinkahead.ini and the server-side scripts
# ... install pylinkahead.ini and the server-side scripts
cp /git/.docker/sss_pylinkahead.ini /scripting/home/.pylinkahead.ini && \
cp /git/.docker/sss_pylinkahead.ini /scripting/home/.pylinkahead.ini && \
cp -r /git/resources /scripting/bin-debug && \
cp -r /git/resources /scripting/bin-debug && \
 
# ... put out general version information
 
python3 --version && \
 
python3 -c "import linkahead; print(linkahead.version.version)" && \
# ... and run tests
# ... and run tests
tox
pytest --cov=linkahead -vv tests
Loading