Skip to content
Snippets Groups Projects
Select Git revision
  • 161cb6bc457f7b0530837e3ab9da0c9e6e98f60f
  • master default
  • 71-clang-format-configuration-compatibility-with-colcon-test
  • rtde
  • tmp-gpg-key-workaround-2
  • tmp-gpg-key-workaround
  • 68-git-lfs-error-in-ddeploy-job
  • split-build-and-test
  • 66-jazzy-support
  • 62-deploy-jobs-do-not-pull-files-from-lfs-manual-lfs-pull
  • 62-deploy-jobs-do-not-pull-files-from-lfs-custom-docker-image
  • py3-without-industrial-ci-test
  • 58-add-yolo-pip-package-support
  • 55-collision-between-test-jobs-due-to-dds-autodiscovery-ros2
  • 52-ddeploy-job-failing-when-enforcing-labels-alt-quick-dind-test
  • 48-python3_syntax
  • 46-default-docker-image-name-too-long
  • 45-double-pipeline-triggered-if-merge-request-has-melodic-branch-name
  • 40-repo-is-ros-testing
  • test-badges
  • test-lfs-concept
21 results

clang-format

Blame
  • post-release.sh 972 B
    #!/usr/bin/env bash
    
    function log_info() {
      >&2 echo -e "[\\e[1;94mINFO\\e[0m] $*"
    }
    
    function log_warn() {
      >&2 echo -e "[\\e[1;93mWARN\\e[0m] $*"
    }
    
    function log_error() {
      >&2 echo -e "[\\e[1;91mERROR\\e[0m] $*"
    }
    
    # check number of arguments
    if [[ "$#" -lt 1 ]]; then
      log_error "Missing arguments"
      log_error "Usage: $0 <next version>"
      exit 1
    fi
    
    nextVer=$1
    minorVer=${nextVer%\.[0-9]*}
    majorVer=${nextVer%\.[0-9]*\.[0-9]*}
    
    log_info "Creating minor version tag alias \\e[33;1m${minorVer}\\e[0m from $nextVer..."
    git tag --force -a "$minorVer" "$nextVer" -m "Minor version alias (targets $nextVer)"
    
    log_info "Creating major version tag alias \\e[33;1m${majorVer}\\e[0m from $nextVer..."
    git tag --force -a "$majorVer" "$nextVer" -m "Major version alias (targets $nextVer)"
    
    log_info "Pushing tags..."
    git_base_url=$(echo "$CI_REPOSITORY_URL" | cut -d\@ -f2)
    git_auth_url="https://token:${GITLAB_TOKEN}@${git_base_url}"
    git push --tags --force "$git_auth_url"