Skip to content
Snippets Groups Projects
.gitlab-ci.yml 1.87 KiB
Newer Older
image: eicweb.phy.anl.gov:4567/eic/juggler/juggler:$JUGGLER_TAG
  before_script:
    - source .local/bin/env.sh
  tags:
    - phy-scratch
  artifacts:
Sylvester Joosten's avatar
Sylvester Joosten committed
    expire_in: 3 days
    paths:
      - .local/detector
      - .local/lib
      - .local/bin
      - .local/include
      - .local/share
      - results
      - config
Whitney Armstrong's avatar
Whitney Armstrong committed
      - juggler.env
    reports:
      dotenv: juggler.env
  - config
  - initialize
  - generate
Sylvester Joosten's avatar
Sylvester Joosten committed
  - process
  - collect
  - finish
common:setup:
  stage: config
  before_script:
    - |
      if [[ "${COMMON_BENCH_VERSION}" == "" ]] ; then
        export COMMON_BENCH_VERSION="master" 
      fi
      echo "COMMON_BENCH_VERSION = ${COMMON_BENCH_VERSION}" 
      git clone -b "${COMMON_BENCH_VERSION}" https://eicweb.phy.anl.gov/EIC/benchmarks/common_bench.git setup 
  script:
    - source setup/bin/env.sh && ./setup/bin/install_common.sh

common:detector:
  stage: initialize
  needs: ["common:setup"]
  script:
    - source .local/bin/env.sh && build_detector.sh
    - mkdir_local_data_link sim_output
    - mkdir -p results
    - mkdir -p config
    - print_env.sh
.phy_benchmark:
  needs:
    - ["common:detector"]
  before_script:
    - source .local/bin/env.sh
    - ls -lrtha 
    - ln -s "${LOCAL_DATA_PATH}/sim_output" sim_output
    - ln -s "${LOCAL_DATA_PATH}/datasets/data" data
    - ls -lrtha
    - bash bin/get_calibrations
  retry:
    max: 2
    when:
      - runner_system_failure
  - local: 'benchmarks/dis/config.yml'
    #- local: 'benchmarks/dvmp/config.yml'
  - local: 'benchmarks/dvcs/config.yml'
  - local: 'benchmarks/u_omega/config.yml'
  - local: 'benchmarks/single/config.yml'
Sylvester Joosten's avatar
Sylvester Joosten committed
summary:
  stage: finish
  #needs: ["dis:results", "dvcs:results", "dvmp:results"]
  needs:
    - "dvcs:results"
  script:
    - collect_benchmarks.py
Whitney Armstrong's avatar
Whitney Armstrong committed
  artifacts:
      - results/*
#    reports:
#      junit: ["results/dvcs/report2.xml"]