[go: up one dir, main page]

Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.

wparad/Travis-Build-Tools

Repository files navigation

Travis Build Tools

A Ruby Gem to manage common Travis-CI build elemets.

Gem Version

Build Status

Usage

Version is created by joining the the number of the release branch number with the build number and then a zero. (release.number).(build number).0.

#!/usr/bin/ruby
require 'travis-build-tools'
VERSION = TravisBuildTools::Version #Returns Gem::Version
puts VERSION

Generate Github Tags

task :publish_git_tag do
  service_user = ENV['GIT_USER'] #GitHub repo access key
  builder = TravisBuildTools::Builder.new(service_user)
  tag_name = BUILD_VERSION
  builder.publish_git_tag(tag_name)
end

Automatic downstream branch merging

task :merge_downstream do
  service_user = ENV['GIT_USER'] #GitHub repo access key
  builder = TravisBuildTools::Builder.new(service_usery)

  branch_name_matcher = 'release/'
  master_branch_name = 'master'
  builder.merge_downstream(branch_name_matcher, master_branch_name)
end

Update .travis.yml keys

  • apt-get install ruby-dev
  • gem install travis
  • Setup Travis-CI build on the repository.
  • travis encrypt GIT_TAG_PUSHER=git_api_key --add env.global
  • travis encrypt deployment_key --add deploy.api_key

About

Creates a Ruby Gem travis-build-tools

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages