Skip to content
Snippets Groups Projects
Select Git revision
  • b3616027090ecd6df9721f737ef3e6a123e4c24b
  • master default protected
  • RAP-1185_do-not-compile-tests
  • RAP-1176_switch-git-image
  • mammoth_august
  • mammoth_september
  • flag_on_polarisation
  • 3c48_logSI
  • optimize_workflow
  • ingest_info
  • poppy_integration_v50
  • releases/v5.1 protected
  • releases/v5.1rc1 protected
  • reverse_versions
  • poppy_integration
  • releases/v5.0 protected
  • use-versioned-releases
  • releases/v5.0rc2 protected
  • releases/v5.0rc1 protected
  • releases/ldv_v407_atdb protected
  • ldv_v407_debug
  • v5.1
  • v5.0
  • v5.0rc2
  • v5.0rc1
  • ldv_v406_debug
  • ldv_v405_debug
  • ldv_v404
  • ldv_v403
  • ldv_v402
  • v4.0
  • ldv_v401
  • ldv_v40
  • ldv_v031
  • ldv_v03
  • ldv_v01
36 results

.gitlab-ci.yml

Blame
  • Tammo Jan Dijkema's avatar
    Tammo Jan Dijkema authored
    Former-commit-id: 1aa9b5f5 [formerly a176ea32]
    Former-commit-id: d90a0084
    Former-commit-id: 94aab794
    10f93596
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    .gitlab-ci.yml 3.55 KiB
    image: lofareosc/prefactor3-cwl:latest
    
    variables:
      TEST_HBA_DATASET_NAME: "test_data.tar.gz"
      CALIBRATOR_HBA_RESULTS_NAME: "results_calibrator.tar.gz"
      TARGET_HBA_RESULTS_NAME: "results_target.tar.gz"
      PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
    
    stages:
      - download_data
      - validate_cwl_scripts
      - test_steps
      - test_full
      - build
      - deploy
    
    before_script:
      - mkdir workdir
      - mkdir logs
    
    after_script:
      - echo "All done"
    
    download_data:
      stage: download_data
      script:
        - mkdir data && cd data
        - wget -q www.astron.nl/citt/ci_data/prefactor/$TEST_HBA_DATASET_NAME -O $TEST_HBA_DATASET_NAME && tar xfz $TEST_HBA_DATASET_NAME && rm -f $TEST_HBA_DATASET_NAME
        - wget -q www.astron.nl/citt/ci_data/prefactor/$CALIBRATOR_HBA_RESULTS_NAME -O $CALIBRATOR_HBA_RESULTS_NAME && tar xfz $CALIBRATOR_HBA_RESULTS_NAME && rm -f $CALIBRATOR_HBA_RESULTS_NAME
        - wget -q www.astron.nl/citt/ci_data/prefactor/$TARGET_HBA_RESULTS_NAME -O $TARGET_HBA_RESULTS_NAME && tar xfz $TARGET_HBA_RESULTS_NAME && rm -f $TARGET_HBA_RESULTS_NAME
        - wget -q https://git.astron.nl/eosc/prefactor3-cwl/-/raw/master/test_data/example.h5 -O example.h5
        - wget -q https://git.astron.nl/eosc/prefactor3-cwl/-/raw/master/test_data/A-Team_lowres.sourcedb -O A-Team_lowres.sourcedb
      artifacts:
        paths:
        - data
    
    validate_scripts:
      stage: validate_cwl_scripts
      script:
        - for file in `find . -name 'steps/*.cwl'`; do cwltool --validate $file; done
    
    blsmooth:
      stage: test_steps
      allow_failure: true
      needs: ["download_data"]
      script:
        - cwltool --no-container steps/blsmooth.cwl test_jobs/blsmooth.json
    
    find_skymodel_cal:
      stage: test_steps
      allow_failure: true
      needs: ["download_data"]
      script:
        - cwltool --no-container --preserve-environment PYTHONPATH steps/find_skymodel_cal.cwl test_jobs/find_skymodel_cal.json
    
    check_ateam_separation:
      stage: test_steps
      allow_failure: true
      needs: ["download_data"]
      script:
        - cwltool --no-container --preserve-environment LD_LIBRARY_PATH --preserve-environment PATH --preserve-environment PYTHONPATH steps/check_ateam_separation.cwl test_jobs/check_ateam_separation.json
    
    run_hba_calibrator:
      stage: test_full
      allow_failure: true
      needs: ["download_data"]
      script:
        - cwltool --no-container --preserve-environment LD_LIBRARY_PATH --preserve-environment PATH --preserve-environment PYTHONPATH workflows/HBA_calibrator.cwl test_jobs/HBA_calibrator.json
        - test_jobs/check_workflow_results.py results /builds/eosc/prefactor3-cwl/data/results_calibrator