-
Notifications
You must be signed in to change notification settings - Fork 34
/
.gitlab-ci.yml
68 lines (63 loc) · 1.93 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
###################
# Global Settings #
###################
stages:
- Env
- Build_n_Test
- Deploy
- Trigger
include:
- .gitlab-ci/index.yaml
######################
# Build_n_Test Stage #
######################
.build_n_test:
extends:
- .job
stage: Build_n_Test
script:
- module purge
- module use ${CI_PROJECT_DIR}/spack_env
- module load loads # module load compiler, deps, etc.
- |
if [[ ${CI_JOB_NAME} =~ "clang" ]];
then
module load clang/${FLECSI_CLANG_VERSION};
elif [[ ${CI_JOB_NAME} =~ "intel" ]];
then
module load intel/${FLECSI_INTEL_VERSION};
fi
- module list
- echo $CC
- echo $CXX
- echo $CMAKE_PREFIX_PATH
- mpiexec --version
- nproc
- echo 'Start building'
#- ccache -z
- mkdir -p ${CI_PROJECT_DIR}/build
- mkdir -p ${CI_PROJECT_DIR}/build/install
- cd ${CI_PROJECT_DIR}/build/
- |
cmake -DCMAKE_INSTALL_PREFIX=${CI_PROJECT_DIR}/build/install \
-DCMAKE_BUILD_TYPE=$FLECSI_BUILD_TYPE \
-DFLECSI_RUNTIME_MODEL=$FLECSI_RUNTIME \
-DENABLE_UNIT_TESTS=ON \
${MINIMAL:+-DCMAKE_DISABLE_FIND_PACKAGE_METIS=ON} \
-DFLECSI_ENABLE_TUTORIAL=OFF \
-DENABLE_HDF5=$([ "$FLECSI_RUNTIME" = "hpx" ] && echo OFF || echo ON) \
-DENABLE_DOXYGEN=ON \
-DENABLE_COVERAGE_BUILD=ON \
-DENABLE_DOCUMENTATION=OFF \
..
- make -k -j2 -l40 || make VERBOSE=1
- make install DESTDIR=${CI_PROJECT_DIR}/build/install
- make install
#- ccache -s
- echo 'Start testing'
- cd ${CI_PROJECT_DIR}/build/
- make test || make test ARGS="-V"
- gcovr .
#######################################################################################
#######################################################################################
#######################################################################################