Skip to content
Snippets Groups Projects
Commit e63ca243 authored by Mayr, Hannes's avatar Mayr, Hannes
Browse files

Merge branch '37-automated-build' into 'dev'

Resolve "Automated build"

See merge request !55
parents cb27fbe0 36af83e4
Branches
Tags
2 merge requests!59Version v0.2.3,!55Resolve "Automated build"
Pipeline #888171 passed
......@@ -4,6 +4,8 @@ stages:
- testing
- security
- docs
- package
- release
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
......@@ -17,24 +19,28 @@ before_script:
- pip install --user --no-warn-script-location -r requirements.txt # install dependencies from file
PEP8:
stage: linting
needs: []
script:
- pip install flake8
- flake8 --count --max-line-length=88 .
Pylint:
stage: linting
needs: []
script:
- pip install pylint
- find . -type f -name '*.py' | xargs pylint -rn --rcfile='plotid/.pylintrc' # Find all python files and check the code with pylint
Autoformatting:
stage: linting
needs: []
script:
- pip install black
- black --check --verbose --diff --color .
Typechecker:
stage: linting
needs: []
script:
- pip install mypy
- mypy --ignore-missing-imports --strict plotid examples
......@@ -42,6 +48,7 @@ Typechecker:
test:
stage: testing
needs: []
tags:
- docker
script:
......@@ -85,6 +92,28 @@ include:
- template: Security/Dependency-Scanning.gitlab-ci.yml
- template: Security/License-Scanning.gitlab-ci.yml
build_and_upload:
stage: package
script:
- pip install build twine
- python3 -m build
- TWINE_PASSWORD=${CI_PYPI_TOKEN} TWINE_USERNAME=__token__ python3 -m twine upload dist/*
rules:
- if: $CI_COMMIT_TAG
release_job:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
rules:
- if: $CI_COMMIT_TAG # Run this job when a tag is created
before_script:
- echo "No before script pls"
script:
- echo "running release_job"
release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
tag_name: '$CI_COMMIT_TAG'
description: '$CI_COMMIT_TAG'
# You can override the included template(s) by including variable overrides
# SAST customization: https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings
# Secret Detection customization: https://docs.gitlab.com/ee/user/application_security/secret_detection/#customizing-settings
......
......@@ -10,5 +10,5 @@ research data, the plot is based on. Additionally, the script that created the
plot will also be copied to the directory.
"""
__version__ = "0.2.2"
__version__ = "0.2.2-b3"
__author__ = "Institut Fluidsystemtechnik within nfdi4ing at TU Darmstadt"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment