From 602b5b0cb2d088edcf24b642c57d9e133dc7723d Mon Sep 17 00:00:00 2001 From: Andy Joslin Date: Wed, 23 Apr 2014 11:19:19 -0600 Subject: [PATCH] chore(travis): make sure it always generates changelog from last release --- gulpfile.js | 4 +++- scripts/travis/ci.sh | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 9d933e2df1..e0d99aa1c9 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -72,11 +72,13 @@ gulp.task('changelog', function(done) { var subtitle = argv.subtitle || '"' + pkg.codename + '"'; var toHtml = !!argv.html; var dest = argv.dest || 'CHANGELOG.md'; + var from = argv.from; changelog({ repository: 'https://github.com/driftyco/ionic', version: pkg.version, subtitle: subtitle, - file: file + file: file, + from: from }, function(err, data) { if (err) return done(err); if (toHtml) { diff --git a/scripts/travis/ci.sh b/scripts/travis/ci.sh index 5fddbbb47f..9b91ca0e4c 100755 --- a/scripts/travis/ci.sh +++ b/scripts/travis/ci.sh @@ -97,7 +97,8 @@ function run { gulp changelog --no-prepend \ --html=true \ --subtitle="(changes since $OLD_VERSION)" \ - --dest="dist/CHANGELOG.html" + --dest="dist/CHANGELOG.html" \ + --version="$OLD_VERSION" fi ./scripts/site/publish.sh \