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

Resolve "Use common_bench"

parent 8b2c9c94
Branches
Tags v0.1.0
1 merge request!4Resolve "Use common_bench"
Pipeline #10000 failed
...@@ -9,17 +9,22 @@ workflow: ...@@ -9,17 +9,22 @@ workflow:
- if: '$CI_COMMIT_TAG' - if: '$CI_COMMIT_TAG'
default: default:
before_script:
- mkdir -p images && mkdir -p doc/
- build && cd build && cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local && make -j20 && make install && cd ..
artifacts: artifacts:
expire_in: 72 hours
paths: paths:
- .local/detector
- .local/lib
- .local/bin
- .local/include
- .local/share
- results
- config
- images/ - images/
- doc/ - doc/
- juggler.env
reports: reports:
dotenv: juggler.env dotenv: juggler.env
stages: stages:
- config - config
- build - build
...@@ -28,8 +33,15 @@ stages: ...@@ -28,8 +33,15 @@ stages:
- finalize - finalize
- deploy - deploy
env: common:setup:
stage: config stage: config
script:
- git clone https://eicweb.phy.anl.gov/EIC/benchmarks/common_bench.git setup
- source setup/bin/env.sh && ./setup/bin/install_common.sh
common:detector:
stage: build
needs: ["common:setup"]
script: script:
- | - |
export BEAMLINE_CONFIG="ip6" export BEAMLINE_CONFIG="ip6"
...@@ -51,32 +63,31 @@ env: ...@@ -51,32 +63,31 @@ env:
echo "JUGGLER_DETECTOR_VERSION = ${CI_COMMIT_REF_NAME}" echo "JUGGLER_DETECTOR_VERSION = ${CI_COMMIT_REF_NAME}"
echo "JUGGLER_DETECTOR_VERSION=$CI_COMMIT_REF_NAME" >> juggler.env echo "JUGGLER_DETECTOR_VERSION=$CI_COMMIT_REF_NAME" >> juggler.env
fi fi
fi fi
artifacts: - source .local/bin/env.sh
reports: - mkdir -p build && cd build && cmake ../. -DCMAKE_INSTALL_PREFIX=${LOCAL_PREFIX} && make -j20 && make install && cd ..
dotenv: juggler.env - mkdir_local_data_link sim_output
- ls -lrth
compile: - print_env.sh
stage: build
needs:
- ["env"]
script:
- mkdir -p build && cd build && cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local && make -j20 && make install && cd ..
- echo "Build successful."
overlap_check: overlap_check:
stage: test stage: test
needs: needs:
- ["compile"] - ["common:detector"]
script: script:
#- $(exit $(checkOverlaps -c topside.xml | tee doc/overlap_check.out | wc -l )) - |
- checkOverlaps -c eic_ip6.xml | tee doc/overlap_check.out | wc -l set -o allexport
- cat doc/overlap_check.out source juggler.env
allow_failure: true set +o allexport
- source .local/bin/env.sh
- mkdir doc
- ls -lrth
- checkOverlaps -c eic_ip6.xml
detectors:reference_detector: detectors:reference_detector:
stage: deploy stage: deploy
needs: ["overlap_check"]
variables: variables:
JUGGLER_DETECTOR: "$JUGGLER_DETECTOR" JUGGLER_DETECTOR: "$JUGGLER_DETECTOR"
JUGGLER_DETECTOR_VERSION: "$JUGGLER_DETECTOR_VERSION" JUGGLER_DETECTOR_VERSION: "$JUGGLER_DETECTOR_VERSION"
...@@ -85,4 +96,3 @@ detectors:reference_detector: ...@@ -85,4 +96,3 @@ detectors:reference_detector:
trigger: trigger:
project: EIC/detectors/reference_detector project: EIC/detectors/reference_detector
strategy: depend strategy: depend
needs: ["env"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment