Run tests as root inside the container.

This commit is contained in:
s3lph 2018-07-10 21:51:42 +02:00
parent 9988ed4ef0
commit 4292cf8696
2 changed files with 1 additions and 6 deletions

View file

@ -1,5 +1,5 @@
--- ---
image: s3lph/matemat-ci:20180710-01 image: s3lph/matemat-ci:20180710-02
stages: stages:
- test - test

View file

@ -1,11 +1,6 @@
FROM debian:buster FROM debian:buster
RUN useradd -d /home/matemat -m matemat
RUN apt-get update -qy RUN apt-get update -qy
RUN apt-get install -y --no-install-recommends git docker.io python3-dev python3-pip python3-coverage python3-setuptools build-essential RUN apt-get install -y --no-install-recommends git docker.io python3-dev python3-pip python3-coverage python3-setuptools build-essential
RUN usermod -aG docker matemat
RUN pip3 install wheel pycodestyle mypy RUN pip3 install wheel pycodestyle mypy
WORKDIR /home/matemat
USER matemat