-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.gitlab-ci.yml
36 lines (33 loc) · 1.26 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
##############################################################################
# Copyright (c) 2017-2025, Lawrence Livermore National Security, LLC and
# other Tribol Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (MIT)
##############################################################################
variables:
GIT_SUBMODULE_STRATEGY: recursive
PROJECT_ALLOC_NAME: ${CI_PROJECT_NAME}_ci_${CI_PIPELINE_ID}
BUILD_ROOT: ${CI_PROJECT_DIR}
####
# Templates
.src_build_script:
script:
# Build source and run unit tests.
- echo -e "section_start:$(date +%s):src_build_and_unit_test\r\e[0K
Source Build and Unit Tests ${CI_PROJECT_NAME}"
- ${ALLOC_COMMAND} python3 scripts/llnl/build_src.py -v --host-config ${HOST_CONFIG} ${EXTRA_BUILD_OPTIONS}
- echo -e "section_end:$(date +%s):src_build_and_unit_test\r\e[0K"
artifacts:
when: always
paths:
- _tribol_build_and_test_*/output.log*.txt
- _tribol_build_and_test_*/build-*/output.log*.txt
reports:
junit:
- _tribol_build_and_test_*/build-*/junit.xml
include:
- local: .gitlab/build_ruby.yml
- local: .gitlab/build_lassen.yml
# ID token requirement for Gitlab 17.0+
- project: 'lc-templates/id_tokens'
file: 'id_tokens.yml'