Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement sync-version tools #48

Merged
merged 2 commits into from
May 10, 2019
Merged

Implement sync-version tools #48

merged 2 commits into from
May 10, 2019

Conversation

vmax
Copy link
Contributor

@vmax vmax commented May 10, 2019

Fix #47

This is a tool that helps incrementing version in version file across @graknlabs repos. Currently, only incrementing patch (following semantic versioning terminology) version is supported.

Sample usage:

py_binary(
    name= "sync_version",
    srcs = ["@graknlabs_build_tools//ci:sync-version.py"],
    data= ["//:VERSION"],
    main = "ci/sync-version.py",
    args = ["$(location //:VERSION)"]
)
ghost:grakn vmax$ bazel run //:sync_version
INFO: Analyzed target //:sync_version (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
Target //:sync_version up-to-date:
  bazel-bin/sync_version
INFO: Elapsed time: 0.200s, Critical Path: 0.01s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action
INFO: Build completed successfully, 1 total action
[2019-05-10 12:56:50.316]: Read version 1.5.3 from version file ./VERSION
[2019-05-10 12:56:50.316]: Writing back version 1.5.4 into version file ./VERSION
diff --git a/VERSION b/VERSION
index 8af85beb5..94fe62c27 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.5.3
+1.5.4

ci/sync-version.py Outdated Show resolved Hide resolved
ci/sync-version.py Show resolved Hide resolved
@vmax vmax requested a review from lolski May 10, 2019 11:29
@lolski
Copy link
Member

lolski commented May 10, 2019

@haikalpribadi @vmax approved.

@vmax vmax merged commit 946b1c3 into vaticle:master May 10, 2019
@vmax vmax deleted the sync-version branch May 10, 2019 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create CI tool to Increment version number after a release
2 participants