Skip to content
Snippets Groups Projects
Commit 86018f46 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

modified: .gitlab-ci.yml

parent 570c360c
No related branches found
No related tags found
1 merge request!22Resolve "Add pipeline triggers"
Pipeline #8268 failed
image: eicweb.phy.anl.gov:4567/containers/eic_container/eic:latest image: eicweb.phy.anl.gov:4567/containers/eic_container/eic:latest
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'
stages: stages:
- config
- build - build
- deploy - deploy
default:
before_script:
- mkdir -p images && mkdir -p doc/
artifacts:
paths:
- images/
- doc/
reports:
dotenv: juggler.env
stages:
env:
stage: config
rules:
- if: '$CI_SERVER_HOST == "eicweb.phy.anl.gov"'
script:
- export JUGGLER_DETECTOR="topside"
- |
if [[ "x${CI_PIPELINE_SOURCE}" == "xmerge_request_event" || "$CI_COMMIT_BRANCH" == "master" ]]; then
export EIC_DATA_MODEL_VERSION="${CI_COMMIT_REF_NAME}"
echo "EIC_DATA_MODEL_VERSION = ${EIC_DATA_MODEL_VERSION}"
echo "EIC_DATA_MODEL_VERSION=$CI_COMMIT_REF_NAME" >> juggler.env
fi
artifacts:
reports:
dotenv: juggler.env
compile: compile:
stage: build stage: build
needs:
- ["env"]
script: script:
- mkdir build && cd build && cmake ../. -DCMAKE_INSTALL_PREFIX=../install && make -j20 && make install - mkdir build && cd build && cmake ../. -DCMAKE_INSTALL_PREFIX=../install && make -j20 && make install
benchmarks:physics:
stage: deploy
rules:
- if: '$CI_SERVER_HOST == "eicweb.phy.anl.gov"'
needs:
- ["env"]
variables:
EIC_DATA_MODEL_VERSION: "$EIC_DATA_MODEL_VERSION"
JUGGLER_DETECTOR: "topside"
JUGGLER_DETECTOR_VERSION: "master"
trigger:
project: EIC/benchmarks/physics_benchmarks
strategy: depend
needs: ["env","compile"]
gen_doxygen_src: gen_doxygen_src:
stage: build stage: build
rules: rules:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment