Commit a5f55e79 authored by Laury Bueno's avatar Laury Bueno
Browse files

[Test] updated dev paths

parent f534d64f
......@@ -23,9 +23,9 @@ docker-compose -f local.yml exec django pytest
- Você deseja apenas executar os testes sem necessariamente levantar o servidor. Antes é necessário construir a imagem do backend e disponibilizar o banco de dados para então executar o pytest via `docker run`
```
docker build -f compose/dev/django/Dockerfile -t django_test .
docker run -d --env-file=./compose/dev/test_env --name=postgres_test postgres:9.6
docker run --env-file=./compose/dev/test_env --link=postgres_test:postgres \
docker build -f compose/test/django/Dockerfile -t django_test .
docker run -d --env-file=./compose/test/test_env --name=postgres_test postgres:9.6
docker run --env-file=./compose/test/test_env --link=postgres_test:postgres \
django_test /test.sh
```
......
......@@ -14,7 +14,7 @@ COPY ./compose/production/django/entrypoint.sh /entrypoint.sh
RUN sed -i 's/\r//' /entrypoint.sh
RUN chmod +x /entrypoint.sh
COPY ./compose/dev/django/test.sh /test.sh
COPY ./compose/test/django/test.sh /test.sh
RUN sed -i 's/\r//' /test.sh
RUN chmod +x /test.sh
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment