Skip to content
Snippets Groups Projects
Commit bcf15033 authored by Marek Chrastina's avatar Marek Chrastina
Browse files

Add history

parent 40aa302e
Branches
Tags
No related merge requests found
Pipeline #8604 passed
...@@ -39,9 +39,10 @@ build: ...@@ -39,9 +39,10 @@ build:
- export LC_CTYPE=en_US.UTF-8 - export LC_CTYPE=en_US.UTF-8
- pip install mustache pystache - pip install mustache pystache
script: script:
- echo "include_merge = False" >> .gitchangelog.rc
- echo "output_engine = mustache(\"restructuredtext\")" >> .gitchangelog.rc - echo "output_engine = mustache(\"restructuredtext\")" >> .gitchangelog.rc
- gitchangelog >> HISTORY.txt - gitchangelog >> docs/HISTORY.txt
- cat HISTORY.txt - cat docs/HISTORY.txt
- echo "output_engine = mustache(\"markdown\")" >> .gitchangelog.rc - echo "output_engine = mustache(\"markdown\")" >> .gitchangelog.rc
- echo >> README.md - echo >> README.md
- gitchangelog | sed -r '1,/^# Changelog$/s/^(# Changelog)$/#\1/' >> README.md - gitchangelog | sed -r '1,/^# Changelog$/s/^(# Changelog)$/#\1/' >> README.md
...@@ -67,11 +68,11 @@ versioncheck: ...@@ -67,11 +68,11 @@ versioncheck:
- export BUILD_VERSION="$(python setup.py --version)" - export BUILD_VERSION="$(python setup.py --version)"
- >- - >-
export PUBLISHED_VERSION="$(pip install pipdeps== 2>&1 | grep -oE "\(from versions: .*)" | sed "s/(from versions: //" | sed "s/)//" | tr ", " "\n" | tail -n1)" export PUBLISHED_VERSION="$(pip install pipdeps== 2>&1 | grep -oE "\(from versions: .*)" | sed "s/(from versions: //" | sed "s/)//" | tr ", " "\n" | tail -n1)"
#- CMP_VERSION="$(cmp-version $BUILD_VERSION $PUBLISHED_VERSION)" - CMP_VERSION="$(cmp-version $BUILD_VERSION $PUBLISHED_VERSION)"
#- if [ $CMP_VERSION -eq 1 ]; then true; else echo 'Git tag is older/same version as module already available from public pypi repository. Please run git tag -a <version> -m "<version>"'; false; fi - if [ $CMP_VERSION -eq 1 ]; then true; else echo 'Git tag is older/same version as module already available from public pypi repository. Please run git tag -a <version> -m "<version>"'; false; fi
- >- #- >-
echo -e "import sys\nfrom packaging.version import Version, LegacyVersion\nver1=Version('$BUILD_VERSION')\nver2=Version('$PUBLISHED_VERSION')\nif ver1>ver2: sys.exit(0)\nif ver1<ver2: sys.exit(1)\nif ver1==ver2: sys.exit(2)" | python # echo -e "import sys\nfrom packaging.version import Version, LegacyVersion\nver1=Version('$BUILD_VERSION')\nver2=Version('$PUBLISHED_VERSION')\nif ver1>ver2: sys.exit(0)\nif ver1<ver2: sys.exit(1)\nif ver1==ver2: sys.exit(2)" | python
- if [ $? -eq 0 ]; then true; else echo 'Git tag is older/same version as module already available from public pypi repository. Please run git tag -a <version> -m "<version>"'; false; fi #- if [ $? -eq 0 ]; then true; else echo 'Git tag is older/same version as module already available from public pypi repository. Please run git tag -a <version> -m "<version>"'; false; fi
upload: upload:
stage: deploy stage: deploy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment