Skip to content

Commit

Permalink
Increasing version number
Browse files Browse the repository at this point in the history
  • Loading branch information
Schuemie authored and Schuemie committed Jan 21, 2022
1 parent 029d200 commit c15d22e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 30 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: Hades
Type: Package
Title: Health Analytics Data-to-Evidence Suite
Version: 1.1.0
Date: 2021-12-17
Version: 1.2.0
Date: 2022-01-21
Authors@R: c(
person("Martijn", "Schuemie", , "[email protected]", role = c("aut", "cre")),
person("Observational Health Data Science and Informatics", role = c("cph"))
Expand Down
22 changes: 22 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
HADES 1.2.0
===========

Changes

- Adding Capr to HADES

HADES 1.1.0
===========

Changes

- Adding CohortGenerator to HADES

HADES 1.0.1
===========

Changes

- Moving Eunomia from CRAN to GitHub


Hades 1.0.0
===========

Expand Down
31 changes: 3 additions & 28 deletions compare_versions
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ $r_major = $1;
$r_minor = $2;
$r_mod = $3;

print "New R version: $r_major-$r_minor-$r_mod\n";

open(GIT_VERSION, "git describe --tags |");
$git = <GIT_VERSION>;
close(GIT_VERSION);
Expand All @@ -20,33 +18,10 @@ $git_major = $1;
$git_minor = $2;
$git_mod = $3;

print "Current git version: $git_major-$git_minor-$git_mod\n";

if ($r_major > $git_major || $r_minor > $git_minor || $r_mod > $git_mod) {
$monotonic = 0;
$new_version = "v$r_major.$r_minor.$r_mod";
} else {
$monotonic = -1;
}

if ($monotonic != 0) {
print "Non-monotonically increasing versions numbers\n";
}

if ($monotonic == 0 & $ARGV[0] eq "--tag") {

$cmd = "git config user.name \"Martijn Schuemie\"; " .
"git config user.email \"schuemie@ohdsi.org\"; " .
"git tag v$r_major.$r_minor.$r_mod ; " .
"git push -q https://\$GH_TOKEN\@github.com/\$GITHUB_REPOSITORY.git --tags";

print "cmd: $cmd\n";

open(GIT_PUSH, "$cmd |");
while ($line = <GIT_PUSH>) {
print "push: $line";
} # TODO Check for errors
close(GIT_PUSH);
print "push: END\n\n";
$new_version = "";
}

exit($monotonic);
print($new_version);

0 comments on commit c15d22e

Please sign in to comment.