Commit 72db8496 authored by Hamaker, Alec's avatar Hamaker, Alec
Browse files

Added env file and added pytest entrypoint

parent fc151efd
Loading
Loading
Loading
Loading
+3 −11
Original line number Diff line number Diff line
@@ -6,17 +6,9 @@ services:
    volumes:
      - ./src/:/tmp/src
      - ./test/:/test/
    environment:
      - DATABASE_HOST=postgres
      - DATABASE_DB=postgres
      - DATABASE_PORT=5432
      - DATABASE_USER=postgres
      - DATABASE_PW=postgres
      - DATABASE_TIMEOUT=60
      - DATABASE_LOG_FILE=test.log
      - DATABASE_LOG_MODE=w
      - LOGLEVEL=debug
    command: ["sh", "-c", "python3 /test/test.py"]
    env_file:
      - ./envfile
    command: ["sh", "-c", "pytest --cov=common /test/test.py"]
    depends_on:
      - postgres