X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=.gitlab-ci.yml;h=3bd74453b6319b76cf4da936777051a311a1ed43;hb=0f198b5c08dad8fa7d03a70ee57d9142c4e73d21;hp=484d151867bd9cd06251ba50fc37e946a5f33acd;hpb=4d366df71b60ff15d6582b5ddcebe47cc2e172da;p=mpd-sima.git diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 484d151..3bd7445 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,10 @@ # https://hub.docker.com/_/python image: python:3 +include: + - local: .gitlab/gitlab-templates.yml + - local: .gitlab/pylint.yml + variables: #XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache" PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache" @@ -17,8 +21,7 @@ stages: smoketest: stage: test script: - - pip install pytest-cov requests - - py.test -q --cov=sima tests + - pip install requests - python setup.py test # build wheel and source - python setup.py bdist_wheel sdist @@ -33,6 +36,16 @@ smoketest: - dist/*.tar.gz - dist/*.zip +unittests: + stage: test + script: + - pip install pytest-cov requests + - py.test -q --cov=sima --junitxml=report.xml tests + artifacts: + when: always + reports: + junit: report.xml + vinstall: stage: test script: