Skip to content

Commit 558d38a

Browse files
authored
Merge pull request #6 from BGR360/version-and-update
Fix some more Cirrus things with version updating
2 parents 6d631ff + a8c3271 commit 558d38a

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.cirrus.yml

+13-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,20 @@ task:
2727
test_script: self-updating-app --no-update
2828

2929
task:
30+
name: Test Install from GitHub and Check Version
31+
# Only run for Releases
32+
only_if: $CIRRUS_RELEASE != ""
33+
<< : *INSTALL_GIT_SCRIPT
34+
<< : *PIP_CACHE
35+
install_script: python scripts/ci/install_latest_from_github.py $CIRRUS_REPO_CLONE_URL $CIRRUS_TAG
36+
37+
task:
38+
# Test without cloning the repo first
3039
name: Test Install from GitHub
3140
# Only run for Releases and Pull Requests
3241
only_if: $CIRRUS_RELEASE != "" || $CIRRUS_PR != ""
42+
# Override clone script to be empty
43+
clone_script: echo "noop"
3344
<< : *INSTALL_GIT_SCRIPT
34-
<< : *PIP_CACHE
35-
install_script: python scripts/ci/install_latest_from_github.py $CIRRUS_REPO_CLONE_URL $CIRRUS_TAG
45+
install_script: pip install git+${CIRRUS_REPO_CLONE_URL}@${CIRRUS_CHANGE_IN_REPO}
46+
run_script: self-updating-app --version

app/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
from app.config import github_api_url
1313

14-
INFO = VersionInfo('app').semantic_version()
14+
INFO = VersionInfo('self_updating_app').semantic_version()
1515
__version__ = INFO.release_string()
1616
__version_info__ = INFO.version_tuple()
1717

0 commit comments

Comments
 (0)