Skip to content
Snippets Groups Projects

F local inttests

Merged Florian Spreckelsen requested to merge f-local-inttests into dev
Files
19
+ 8
3
@@ -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
@@ -27,7 +28,11 @@ RUN mv /git/.docker/tester_pylinkahead.ini /git/pylinkahead.ini
@@ -27,7 +28,11 @@ RUN mv /git/.docker/tester_pylinkahead.ini /git/pylinkahead.ini
WORKDIR /git
WORKDIR /git
# wait for server,
# wait for server,
CMD /wait-for-it.sh caosdb-server:10443 -t 500 -- \
CMD /wait-for-it.sh caosdb-server:10443 -t 500 -- \
# ... install pylinkahead.ini 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 && \
 
# ... 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