Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
This GitLab CI configuration is invalid: jobs:build_badges_versions:except has to be either an array of conditions or a hash Learn more
.gitlab-ci.yml 31.69 KiB
before_script:
  - module load python/3.6.4-anaconda
  - pip install --user  attrs==19.1.0 pytest-pythonpath==0.7.1 pytest-cov==2.5.1 deriva==1.3.0
  - module load singularity/3.5.3
  - module load nextflow/20.01.0
  - ln -sfn /project/BICF/BICF_Core/shared/gudmap/test_data/* ./test_data/
  - mkdir -p ~/.deriva
  - mkdir -p ~/.bdbag

variables:
  refMoVersion: "38.p6.vM22"
  refHuVersion: "38.p12.v31"
  refERCCVersion: "92"

stages:
  - badges
  - deploy
  - unit
  - aggregation
  - reference
  - integration
  - consistency

build_badges_versions:
  stage: badges
  except: schedules
  before_script:
    - module load singularity/3.5.3
    - chmod +x ./workflow/scripts/get_updated_badge_info.sh
  script:
    - echo "Building badges"
    - singularity run 'docker://gudmaprbk/gudmap-rbk_base:1.0.0' bash ./workflow/scripts/get_updated_badge_info.sh
  artifacts:
    paths:
      - badges/

build_badges_counts:
  stage: badges
  only: schedules
  before_script:
    - module load singularity/3.5.3
    - chmod +x ./workflow/scripts/get_updated_badge_info.sh
  script:
    - echo "Building badges"
    - singularity run 'docker://gudmaprbk/gudmap-rbk_base:1.0.0' bash ./workflow/scripts/get_updated_badge_info.sh
    - singularity run 'docker://gudmaprbk/gudmap-rbk_base:1.0.0' bash ./workflow/scripts/get_updated_rep_count.sh
  artifacts:
    paths:
      - badges/

pages:
  stage: deploy
  dependencies:
    - build_badges
  script:
    - mkdir -p public
    - mv badges/ public/badges/
  artifacts:
    paths:
    - public

getBag:
  stage: unit
  only:
    - push
    - tags
  except:
    - merge_requests
    - schedules
  script: