Skip to content

Commit 078fa25

Browse files
committed
Use update travis build tools.
1 parent 4283156 commit 078fa25

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ GEM
1919
mime-types (>= 1.16, < 3.0)
2020
netrc (~> 0.7)
2121
rubyzip (1.1.7)
22-
travis-build-tools (1.0.30.0)
22+
travis-build-tools (2.0.48.0)
2323
bundler (~> 1.10)
2424
rest-client (~> 1.8)
2525
rubyzip (~> 1.1)

rakefile.rb

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
desc 'Creates eclipse project'
3535
task :project
3636

37-
task :after_build => [:publish_git_tag, :display_repository]
37+
task :after_build => [:publish_git_tag, :display_repository, :merge_downstream]
3838

3939
task :clobber => [:clean]
4040
CLOBBER.include(TARGET_DIR, AMPS_DIR)
@@ -76,16 +76,19 @@ def download_file(local_path, remote_location)
7676
File.write(pom_xml, document.to_s)
7777
end
7878

79-
publish_git_tag :publish_git_tag do |t, args|
80-
t.git_repository = %x[git config --get remote.origin.url].split('://')[1]
81-
t.tag_name = TravisBuildTools::Build::VERSION
82-
t.service_user = ENV['GIT_TAG_PUSHER']
83-
end
84-
8579
task :display_repository do
8680
puts Dir.glob(File.join(PWD, '**', '*'), File::FNM_DOTMATCH).select{|f| !f.match(/\/(\.git|vendor|bundle)\//)}
8781
end
8882

83+
BUILDER = TravisBuildTools::Builder.new(ENV['GIT_TAG_PUSHER'] || ENV['USER'])
84+
task :publish_git_tag do
85+
BUILDER.publish_git_tag(TravisBuildTools::Build::VERSION.to_s)
86+
end
87+
88+
task :merge_downstream do
89+
BUILDER.merge_downstream('release/', 'master')
90+
end
91+
8992
task :compile do
9093
cmd = 'mvn -DdownloadSources=trueclean compile assembly:single'
9194
system(cmd)

0 commit comments

Comments
 (0)