Skip to content
Snippets Groups Projects
Commit f662d525 authored by Gervaise Henry's avatar Gervaise Henry :cowboy:
Browse files

Create badge json

parent dcda53fd
Branches
Tags
1 merge request!58Develop
Pipeline #8710 failed with stages
in 1 minute and 55 seconds
...@@ -8,12 +8,27 @@ before_script: ...@@ -8,12 +8,27 @@ before_script:
- mkdir -p ~/.bdbag - mkdir -p ~/.bdbag
stages: stages:
- badges
- unit - unit
- aggregation - aggregation
- reference - reference
- integration - integration
- consistency - consistency
build_bages:
stage: badges
only:
- master
script:
- echo "Building badges"
after_script:
- ./get-updated-badge-info.sh
artifacts:
paths:
- badges.json
when: always
expire_in: 3 months
getBag: getBag:
stage: unit stage: unit
only: only:
......
#!/bin/bash
echo "collecting stats for badges"
commits=`git rev-list --all --count`
latest_release_tag=$(git describe --tags `git rev-list --tags --max-count=1`)
current_pipeline_version=$(cat ./workflow/nextflow.config | grep -o version.* | grep -oP "(?<=').*(?=')")
current_nextflow_version=$(cat ./workflow/nextflow.config | grep -o nextflowVersion.* | grep -oP "(?<=').*(?=')")
echo "{\"commits\":\"$commits\", \"release_tag\":\"$latest_release_tag\", \"pipeline\":\"$current_pipeline_version\", \"nextflow\":\"$current_nextflow_version\"}" > badges.json
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment