stages: - install - test - deploy .junit_template: &junit_definition artifacts: reports: junit: "junit*.xml" install_py37: stage: install image: python:3.7-buster script: - apt-get -y update - python setup.py install - eossr-codemeta2zenodo --help - eossr-codemeta2zenodo --input_codemeta_file ./codemeta.json - cat .zenodo.json only: - branches test_py37: stage: test image: python:3.7-buster script: - apt-get -y update - pip install pytest pytest-cov - pip install -e . - pytest eossr/ --junitxml=junit_py37.xml --color=yes --verbose --cov=eossr --cov-report=xml --cov-report=term <<: *junit_definition pages: stage: deploy image: python:3.7-alpine script: - pip install -U sphinx - sphinx-build -b html docs public artifacts: paths: - public only: - master