Should now avoid pyc removal warnings
This commit is contained in:
parent
27ff3a4ce6
commit
381aaf48db
|
@ -7,7 +7,8 @@ stages:
|
||||||
test_api:
|
test_api:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- ./api/runtests
|
- docker-compose -f api/test.yml build
|
||||||
|
- docker-compose -f api/test.yml run test
|
||||||
|
|
||||||
tags:
|
tags:
|
||||||
- dind
|
- dind
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
FROM python:3.5
|
FROM python:3.5
|
||||||
|
|
||||||
ENV PYTHONUNBUFFERED 1
|
ENV PYTHONUNBUFFERED 1
|
||||||
|
ENV PYTHONDONTWRITEBYTECODE 1
|
||||||
|
|
||||||
# Requirements have to be pulled and installed here, otherwise caching won't work
|
# Requirements have to be pulled and installed here, otherwise caching won't work
|
||||||
COPY ./requirements.apt /requirements.apt
|
COPY ./requirements.apt /requirements.apt
|
||||||
COPY ./install_os_dependencies.sh /install_os_dependencies.sh
|
COPY ./install_os_dependencies.sh /install_os_dependencies.sh
|
||||||
RUN bash install_os_dependencies.sh install
|
RUN bash install_os_dependencies.sh install
|
||||||
|
RUN apt-get install py3clean
|
||||||
RUN mkdir /requirements
|
RUN mkdir /requirements
|
||||||
|
|
||||||
COPY ./requirements/base.txt /requirements
|
COPY ./requirements/base.txt /requirements
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
test:
|
test:
|
||||||
dockerfile: docker/Dockerfile.test
|
dockerfile: docker/Dockerfile.test
|
||||||
build: .
|
build: .
|
||||||
command: python manage.py test
|
entrypoint: python manage.py test
|
||||||
volumes:
|
volumes:
|
||||||
- .:/app
|
- .:/app
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Reference in New Issue