-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
40 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,10 @@ stages: | |
- build | ||
- status_update | ||
|
||
.on_quartz: | ||
.on_dane: | ||
tags: | ||
- shell | ||
- quartz | ||
- dane | ||
rules: | ||
# Only report failure if the pipeline failed. | ||
- if: '$CI_JOB_NAME =~ /status_failure/' | ||
|
@@ -17,15 +17,15 @@ stages: | |
- when: on_success | ||
|
||
.status_report: &status_report | ||
- export context="quartz" | ||
- export context="dane" | ||
- | | ||
curl --url "https://api.github.com/repos/llnl/${CI_PROJECT_NAME}/statuses/${CI_COMMIT_SHA}" \ | ||
--header 'Content-Type: application/json' \ | ||
--header "authorization: Bearer ${GITHUB_TOKEN}" \ | ||
--data "{ \"state\": \"${pipeline_status}\", \"target_url\": \"${CI_PIPELINE_URL}\", \"description\": \"GitLab ${context} pipeline\", \"context\": \"ci/gitlab/${context}\" }" | ||
status_pending: | ||
extends: [.on_quartz] | ||
extends: [.on_dane] | ||
stage: status_initiate | ||
id_tokens: | ||
CI_JOB_JWT: | ||
|
@@ -35,26 +35,26 @@ status_pending: | |
- *status_report | ||
|
||
status_success: | ||
extends: [.on_quartz] | ||
extends: [.on_dane] | ||
stage: status_update | ||
script: | ||
- export pipeline_status="success" | ||
- *status_report | ||
when: on_success | ||
|
||
status_failure: | ||
extends: [.on_quartz] | ||
extends: [.on_dane] | ||
stage: status_update | ||
script: | ||
- export pipeline_status="failure" | ||
- *status_report | ||
when: on_failure | ||
|
||
# no access to msr-safe on quartz | ||
build-quartz: | ||
# no access to msr-safe on dane | ||
build-dane: | ||
tags: | ||
- batch | ||
- quartz | ||
- dane | ||
stage: build | ||
script: | ||
# Build and install rankstr dependency | ||
|
@@ -69,20 +69,20 @@ build-quartz: | |
- export HOSTNAME=`hostname` | ||
- echo -e "Hostname:" ${HOSTNAME} | ||
- groups | ||
- mkdir build-gitlab-quartz && mkdir install-gitlab-quartz | ||
- cd build-gitlab-quartz | ||
- export HOST_CONFIG=`ls ../host-configs/quartz[email protected]` | ||
- mkdir build-gitlab-dane && mkdir install-gitlab-dane | ||
- cd build-gitlab-dane | ||
- export HOST_CONFIG=`ls ../host-configs/dane[email protected]` | ||
- echo -e "HOST_CONFIG:" ${HOST_CONFIG} | ||
- echo -e "PWD:" ${PWD} | ||
- cmake -C ${HOST_CONFIG} -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../install-gitlab-quartz -DBUILD_TESTS=ON -DENABLE_WARNINGS=ON -DRANKSTR_DIR=${RANKSTR_INSTALL} ../src | ||
- cmake -C ${HOST_CONFIG} -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../install-gitlab-dane -DBUILD_TESTS=ON -DENABLE_WARNINGS=ON -DRANKSTR_DIR=${RANKSTR_INSTALL} ../src | ||
- make VERBOSE=1 | ||
- make install | ||
#- env CTEST_OUTPUT_ON_FAILURE=1 make test | ||
- cd .. | ||
- echo -e "PWD:" ${PWD} | ||
- which cmake | ||
- cmake --version | ||
- cd install-gitlab-quartz/examples/using-with-cmake/c | ||
- cd install-gitlab-dane/examples/using-with-cmake/c | ||
- echo -e "PWD:" ${PWD} | ||
- mkdir _test_build | ||
- cd _test_build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
include: [component: $CI_SERVER_FQDN/lc-components/id_tokens/id_tokens-component@main] | ||
|
||
# Trigger a build pipeline for the following systems | ||
quartz-build-and-test: | ||
dane-build-and-test: | ||
variables: | ||
CI_MACHINE: "quartz" | ||
CI_MACHINE: "dane" | ||
extends: [.build] | ||
|
||
corona-gpu-build-and-test: | ||
variables: | ||
CI_MACHINE: "corona-gpu" | ||
extends: [.build] | ||
|
||
lassen-gpu-build-and-test: | ||
variables: | ||
CI_MACHINE: "lassen-gpu" | ||
extends: [.build] | ||
|
||
lassen-cpu-build-and-test: | ||
variables: | ||
CI_MACHINE: "lassen-cpu" | ||
extends: [.build] | ||
|
||
lassen-cpu-and-gpu-build-and-test: | ||
variables: | ||
CI_MACHINE: "lassen-cpugpu" | ||
extends: [.build] | ||
|
||
cztb2-build-and-test: | ||
variables: | ||
CI_MACHINE: "cztb2" | ||
extends: [.build] | ||
#corona-gpu-build-and-test: | ||
# variables: | ||
# CI_MACHINE: "corona-gpu" | ||
# extends: [.build] | ||
# | ||
#lassen-gpu-build-and-test: | ||
# variables: | ||
# CI_MACHINE: "lassen-gpu" | ||
# extends: [.build] | ||
# | ||
#lassen-cpu-build-and-test: | ||
# variables: | ||
# CI_MACHINE: "lassen-cpu" | ||
# extends: [.build] | ||
# | ||
#lassen-cpu-and-gpu-build-and-test: | ||
# variables: | ||
# CI_MACHINE: "lassen-cpugpu" | ||
# extends: [.build] | ||
# | ||
#cztb2-build-and-test: | ||
# variables: | ||
# CI_MACHINE: "cztb2" | ||
# extends: [.build] |