Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 914 Bytes

README_CI.md

File metadata and controls

22 lines (16 loc) · 914 Bytes

Configuration variables:

  • GH_TOKEN: used by semantic-release to push changes to Github and manage releases
  • GEM_HOST_API_KEY: rubygems API key
  • GEM_ALTERNATIVE_NAME (optional): used for testing of CI flows, to avoid publication of test releases under official package name

Release command

./release.sh

Bash wrapper script is used merely as a launcher of semantic-release with extra logic to explicitly determine git url from TRAVIS_REPO_SLUG
variable if its defined (otherwise git url is taken from package.json, which breaks CI on forked repos).

CI flow

  1. Test happens using current version number specified in lib/appmap/version.rb, then release.sh launches semantic-release to do the rest
  2. The version number is increased (including modicication of version.rb)
  3. Gem is published under new version number
  4. Github release is created with the new version number