Skip to content
Snippets Groups Projects
Commit c589588c authored by Lopez de Guereña Caballero, Jon's avatar Lopez de Guereña Caballero, Jon
Browse files

Merge branch 'master' into 'master'

Master

See merge request !1
parents 04f97748 2d8911a4
Branches
No related tags found
1 merge request!1Master
artifactory:
stage: artifactory
tags:
- docker
variables:
TWINE_USERNAME: $ACR_USERNAME
TWINE_PASSWORD: $ACR_PASSWORD
script:
- source $VIRTUALENV_NAME/bin/activate
- pip install twine
- python setup.py sdist bdist_wheel
- twine upload --repository-url $ACR_PYPI_URL dist/*
only:
refs:
# run only when new tag is published or changes pushed to master
- tags
pages:
tags:
- docker
stage: pages
script:
- source $VIRTUALENV_NAME/bin/activate
- pip install -U sphinx
- pip install -U sphinx_glpi_theme
- cd docs
- sphinx-build -b html . ../public
allow_failure: true
artifacts:
paths:
- public
only:
refs:
# run only when new tag is published or changes pushed to master
- tags
- master
test:
tags:
- docker # this is necessary to execute the Gitlab Runner in a docker container
only:
refs:
# run only when new tag is published or changes pushed to master
- tags
- master
script:
# run test files in tests folder
- source $VIRTUALENV_NAME/bin/activate
- python -m unittest discover tests
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
VIRTUALENV_NAME: "venv"
cache:
paths:
- .cache/pip
- $VIRTUALENV_NAME/
virtualenv:
stage: virtualenv
tags:
- docker
script:
- pip install virtualenv # install virtualenv to create a virtual environment to install required packages
- virtualenv $VIRTUALENV_NAME # create a virtualenvironment
- source $VIRTUALENV_NAME/bin/activate # activate the virtualenvironment
- python -V # print python version for debugging
- pip install -r requirements.txt # install required packages
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment