Skip to content

Commit

Permalink
[#6] CHANGELOG synchronization with GH release notes
Browse files Browse the repository at this point in the history
Using Chandler.
  • Loading branch information
szpak committed Jul 4, 2017
1 parent 254075d commit f52c7df
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ before_install:
- "export TRAVIS_COMMIT_MSG=$(git log --format=%B -n 1 $TRAVIS_COMMIT)"
- git config user.email "szpak-ci@users.noreply.github.com"
- git config user.name "Szpak CI Bot"
# Chandler for release notes synchronization
- ruby --version
- rvm install 2.4.1
- ruby --version
- gem install chandler

install: true
script:
Expand All @@ -24,6 +29,7 @@ cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.rvm/

env:
global:
Expand Down
14 changes: 14 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,17 @@ if (hasProperty('pluginPortal')) {
}
ciBuild.dependsOn publishPlugins
}

if (hasProperty('changelogSync')) {

task syncChangelog(type: Exec) {
doFirst { logger.info("Synchronizing changelog with GitHub for version ${project.version}") }
commandLine 'chandler', 'push', "release/${project.version}", '--tag-prefix=release/'
}

syncChangelog {
onlyIf { ciBuild.isInReleaseMode }
mustRunAfter releaseRepository, publishPlugins
}
ciBuild.dependsOn syncChangelog
}

0 comments on commit f52c7df

Please sign in to comment.