forked from LLNL/havoqgt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
78 lines (66 loc) · 1.76 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# GitLab CI YML file dedicated for LC environment (Quartz)
#
# Spack must be available
# It would be better to install all Boost versions manually,
# as it causes errors often and could exceed the timelimit of the system.
#
# One might want to change the location of builds directory on LC clusters to avoid consuming the home directory space.
# Type the following command on a LC cluster:
# $ ln -s /usr/workspace/lc-username ~/.gitlab-runner
stages:
- install
- build
variables:
GTEST_COLOR: "1"
GIT_DEPTH: 0
SPACK_ARCH_INFO: "arch=linux-rhel7-broadwell"
GCC_VERSION: "8.1.0"
METALL_VERSION: "0.5"
install_boost:
stage: install
tags:
- quartz
- shell
script:
- hostname
- pwd
- spack install boost@1.74.0
- spack install boost@1.71.0
- spack install metall@${METALL_VERSION}
- spack clean
- spack find
.build:
stage: build
tags:
- quartz
- shell
script:
- salloc -N1 -ppdebug
- module load gcc/${GCC_VERSION}
- spack load metall@${METALL_VERSION} ${SPACK_ARCH_INFO}
- spack load boost@${BOOST_VERSION} ${SPACK_ARCH_INFO}
- cd build/gitlab_ci
- sh ./scripts/${BUILD_SCRIPT}
- make -j
- export HAVOQGT_TEST_DIR="/dev/shm/havoqgt_test-${CI_CONCURRENT_ID}-${CI_PIPELINE_IID}"
- make test
build_with_release_boost1.74.0:
extends: .build
variables:
BUILD_SCRIPT: "do_cmake.sh"
BOOST_VERSION: "1.74.0"
build_with_debug_boost1.74.0:
extends: .build
variables:
BUILD_SCRIPT: "do_cmake_debug.sh"
BOOST_VERSION: "1.74.0"
build_with_release_boost1.71.0:
extends: .build
variables:
BUILD_SCRIPT: "do_cmake.sh"
BOOST_VERSION: "1.71.0"
build_with_debug_boost1.71.0:
extends: .build
variables:
BUILD_SCRIPT: "do_cmake_debug.sh"
BOOST_VERSION: "1.71.0"