forked from LLNL/Umpire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
58 lines (46 loc) · 1.87 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
##############################################################################
# Copyright (c) 2016-19, Lawrence Livermore National Security, LLC and Umpire
# project contributors. See the COPYRIGHT file for details.
#
# SPDX-License-Identifier: (MIT)
##############################################################################
variables:
GIT_SUBMODULE_STRATEGY: recursive
BUILD_QUARTZ_ALLOC_NAME: umpire_ci_$CI_COMMIT_SHORT_SHA
BUILD_ROOT: $CI_BUILDS_DIR/umpire_$CI_COMMIT_REF_SLUG
before_script:
- date
after_script:
- date
# There are no tests for now
stages:
- allocate_resources
- build
- test
- release_resources
# This is not a job, but contains project specific build commands
# If an allocation exist with the name defined in this pipeline, the job will use it
.build_toss_3_x86_64_ib_script:
script:
- echo ${BUILD_QUARTZ_ALLOC_NAME}
- export JOBID=$(squeue -h --name=${BUILD_QUARTZ_ALLOC_NAME} --format=%A)
- echo ${JOBID}
- srun $( [[ -n "${JOBID}" ]] && echo "--jobid=${JOBID}" ) -t 10 -N 1 -n 1 -c 4 scripts/gitlab/build_and_test.sh --build-only
# This is not a job, but contains project specific build commands
.test_toss_3_x86_64_ib_script:
script:
- echo ${BUILD_QUARTZ_ALLOC_NAME}
- export JOBID=$(squeue -h --name=${BUILD_QUARTZ_ALLOC_NAME} --format=%A)
- echo ${JOBID}
- srun $( [[ -n "${JOBID}" ]] && echo "--jobid=${JOBID}" ) -t 10 -N 1 -n 1 -c 4 scripts/gitlab/build_and_test.sh --test-only
# Butte uses a very different job allocation system, building on login nodes is recommended
.build_blueos_3_ppc64le_ib_script:
script:
- lalloc 1 scripts/gitlab/build_and_test.sh
.build_blueos_3_ppc64le_ib_p9_script:
extends: .build_blueos_3_ppc64le_ib_script
# This is where jobs are included
include:
- local: .gitlab/ci/build_quartz.yml
- local: .gitlab/ci/build_butte.yml
- local: .gitlab/ci/build_lassen.yml