-
Wouter Deconinck authoredWouter Deconinck authored
.gitlab-ci.yml 4.57 KiB
image: eicweb.phy.anl.gov:4567/eic/juggler/juggler:$JUGGLER_TAG
workflow:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_PIPELINE_SOURCE == "web"'
- if: '$CI_PIPELINE_SOURCE == "webide"'
- if: '$CI_COMMIT_BRANCH == "master"'
- if: '$CI_COMMIT_TAG'
default:
tags:
- phy-scratch
artifacts:
expire_in: 72 hours
paths:
- .local/detector
- .local/lib
- .local/bin
- .local/include
- .local/share
- results
- config
- juggler.env
reports:
dotenv: juggler.env
stages:
- config
- initialize
- data_init
- simulate
- calibrate
- benchmarks
- collect
- deploy
- trigger
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:
- |
if [[ "x${CI_PIPELINE_SOURCE}" == "xmerge_request_event" || "$CI_COMMIT_BRANCH" == "master" ]]; then
echo "JUGGLER_DETECTOR = ${JUGGLER_DETECTOR}"
echo "JUGGLER_DETECTOR_VERSION = ${JUGGLER_DETECTOR_VERSION}"
echo "JUGGLER_DETECTOR=$JUGGLER_DETECTOR" >> juggler.env
echo "JUGGLER_DETECTOR_VERSION=$JUGGLER_DETECTOR_VERSION" >> juggler.env
echo "COMMON_BENCH_VERSION=$COMMON_BENCH_VERSION" >> juggler.env
else
if [[ "${JUGGLER_DETECTOR}" == "" ]] ; then
export JUGGLER_DETECTOR="athena"
fi
if [[ "${JUGGLER_DETECTOR_VERSION}" == "" ]] ; then
export JUGGLER_DETECTOR_VERSION="master"
fi
echo "JUGGLER_DETECTOR = ${JUGGLER_DETECTOR}"
echo "JUGGLER_DETECTOR_VERSION = ${JUGGLER_DETECTOR_VERSION}"
echo "JUGGLER_DETECTOR=$JUGGLER_DETECTOR" >> juggler.env
echo "JUGGLER_DETECTOR_VERSION=$JUGGLER_DETECTOR_VERSION" >> juggler.env
echo "COMMON_BENCH_VERSION=$COMMON_BENCH_VERSION" >> juggler.env
fi
- source setup/bin/env.sh && ./setup/bin/install_common.sh