Skip to content
Snippets Groups Projects
Commit 81ea84dd authored by Henrik tom Woerden's avatar Henrik tom Woerden
Browse files

Add style check to gitlab ci

parent 2949d2fa
No related branches found
No related tags found
No related merge requests found
FROM debian:latest
RUN apt-get update && \
apt-get install docker.io tox curl python3-pip git -y
apt-get install docker.io tox curl python3-pip git python-autopep8 -y
RUN pip3 install docker-compose
COPY .docker/wait-for-it.sh /wait-for-it.sh
RUN git clone https://gitlab.gwdg.de/bmp-caosdb/caosdb-pylib.git && \
......
......@@ -62,10 +62,12 @@ services:
stages:
- setup
- style
- test
test:
tags: [docker]
stage: test
image:
name: docker/compose:1.24.1
entrypoint: ["/bin/sh", "-c"]
......@@ -99,3 +101,10 @@ build-testenv:
--cache-from $CI_REGISTRY_IMAGE:latest
-t $CI_REGISTRY_IMAGE:latest .
- docker push $CI_REGISTRY_IMAGE:latest
style:
tags: [docker]
stage: style
image: $CI_REGISTRY_IMAGE:latest
script:
- autopep8 -r --diff --exit-code .
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment