Commit 469e0b0e authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

Merge branch 'ci/check_version' into 'master'

CI: I've never liked patc_version. Changed so it just checks that the version

See merge request fsl/fsleyes/props!32
parents 3373bfac 83a336f9
#!/bin/bash
####################################################
# The patch_version script is run on release builds,
# The check_version script is run on release builds,
# and makes sure that the version in the code is up
# to date (i.e. equal to the tag name).
####################################################
if [[ "x$CI_COMMIT_TAG" != "x" ]]; then
echo "Release detected - patching version - $CI_COMMIT_REF_NAME";
sed -ie "s/^__version__ = .*$/__version__ = '$CI_COMMIT_REF_NAME'/g" fsleyes_props/__init__.py;
fi
set -e
cat fsleyes_props/__init__.py | egrep "^__version__ += +'$CI_COMMIT_REF_NAME' *$"
......@@ -107,9 +107,9 @@ variables:
- bash ./.ci/setup_ssh.sh
.patch_version: &patch_version
.check_version: &check_version
before_script:
- bash ./.ci/patch_version.sh
- bash ./.ci/check_version.sh
############
......@@ -180,7 +180,6 @@ style:
build-doc:
<<: *only_upstream
<<: *patch_version
tags:
- docker
......@@ -204,7 +203,7 @@ build-doc:
build-pypi-dist:
<<: *only_releases
<<: *patch_version
<<: *check_version
stage: build
image: python:3.5
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment