Browse Source

Attempting to resolve differences between CI and dev environment

merge-requests/1/head
Drew Short 7 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 image: python:3.6-slim-stretch
stage: test stage: test
script: script:
- python3 --version
- python3 -m pip --version
- python3 -m pip install pipenv - python3 -m pip install pipenv
- python3 -m pipenv --version
- cd server - cd server
- pipenv install --dev --system - 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: tags:
- docker - docker

12
server/run_tests.sh

@ -3,6 +3,18 @@
set -e set -e
set -x 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 pylint atheneum
mypy atheneum tests mypy atheneum tests
PYTHONPATH=$(pwd) coverage run --source atheneum -m pytest PYTHONPATH=$(pwd) coverage run --source atheneum -m pytest

Loading…
Cancel
Save