Skip to content

Commit

Permalink
Added tnoodle-android release to maven to "./tmt release" script.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfly committed Feb 20, 2014
1 parent 7bdf180 commit 132975b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
4 changes: 4 additions & 0 deletions tmt
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,10 @@ class tmt:
# After committing that file, there should not be anything left uncommitted.
tmt.exitIfWorkspaceNotClean()

if not tmt.args.dry_run:
tnoodleAndroidProject = tmt.TmtProject.projects['tnoodle-android']
tnoodleAndroidProject.publishToMavenCentral()

print("Releasing TNoodle")

tagMessage = "version %s" % tmt.VERSION
Expand Down
14 changes: 10 additions & 4 deletions tnoodle-android/tmtproject.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,23 @@ def configure(self):
def getDependencies(self):
return [ tmt.TmtProject.projects['scrambles'] ]

def runGradleTask(self, task):
retVal = os.system(self.gradlew % task)
assert retVal == 0

def compile(self):
# Note that we skip signing here in order to prevent
# travis ci issue.
retVal = os.system(self.gradlew % "assemble -x signArchives")
assert retVal == 0
self.runGradleTask("assemble -x signArchives")

def clean(self):
retVal = os.system(self.gradlew % "clean")
assert retVal == 0
self.runGradleTask("clean")

def check(self):
pass

def publishToMavenCentral(self):
self.runGradleTask("uploadArchives")
self.runGradleTask("nexusStagingRelease")

Project(tmt.projectName(), description="Android scrambling library")

0 comments on commit 132975b

Please sign in to comment.