Skip to content
Snippets Groups Projects
Commit 9ae5aab9 authored by Ryan Bonham's avatar Ryan Bonham
Browse files

Merge branch 'nochangelog_fix_install_check' into 'main'

Fix version check pulled via installer

See merge request !268
parents dcdce024 d1b414f0
No related branches found
No related tags found
Loading
Pipeline #912521974 passed
......@@ -252,7 +252,7 @@ test:version_number:
- when: never
script:
- export CHANGELOG_VERSION=$(grep -oE '^##[[:blank:]]+\[[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+(-(alpha|beta)\.[[:digit:]]+)\]' CHANGELOG.md | head -1 | grep -oE '[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+(-(alpha|beta)\.[[:digit:]]+)')
- export CODE_VERSION=$(php -r 'include("src/install/base_installer.php"); $installer = new installer(); $installer->set_version(); echo $installer->version_number;')
- export CODE_VERSION=$(php -r 'include("src/install/BaseInstall.php"); $installer = new \OpenRealty\Install\BaseInstall(); echo $installer->version_number;')
- if [[ "$CI_COMMIT_TAG" == "$CODE_VERSION" ]]; then echo "GOOD - Tag match installer version"; else echo "BAD - Tag doesn't match installer version"; exit 1; fi
- if [[ "$CHANGELOG_VERSION" == "$CI_COMMIT_TAG" ]]; then echo "GOOD - Tag match changelog version"; else echo "BAD - Tag doesn't match changelog version"; exit 1; fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment