Browse Source

Attempting to resolve differences between CI and dev environment

merge-requests/1/head
Drew Short 6 years ago
parent
commit
99412dc7a2
  1. 10
      .gitlab-ci.yml
  2. 12
      server/run_tests.sh

10
.gitlab-ci.yml

@ -5,17 +5,9 @@ Atheneum:Tests:
image: python:3.6-slim-stretch
stage: test
script:
- python3 --version
- python3 -m pip --version
- python3 -m pip install pipenv
- python3 -m pipenv --version
- cd server
- pipenv install --dev --system
- pylint atheneum
- mypy atheneum tests
- PYTHONPATH=$(pwd) coverage run --source atheneum -m pytest
- coverage report --fail-under=85 -m --skip-covered
- pycodestyle atheneum tests
- pydocstyle atheneum
- bash ./run_tests.sh
tags:
- docker

12
server/run_tests.sh

@ -3,6 +3,18 @@
set -e
set -x
python3 --version
python3 -m pip --version
python3 -m pipenv --version
pylint --version
mypy --version
coverage --version
pytest --version
pycodestyle --version
pydocstyle --version
pylint atheneum
mypy atheneum tests
PYTHONPATH=$(pwd) coverage run --source atheneum -m pytest

Loading…
Cancel
Save