-
Notifications
You must be signed in to change notification settings - Fork 11
/
.gitlab-ci.yml
54 lines (49 loc) · 1.43 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
###################
# 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.
- module list
- echo $CC
- echo $CXX
- mpiexec --version
- nproc
- echo 'Start building'
- mkdir -p ${CI_PROJECT_DIR}/build
- mkdir -p ${CI_PROJECT_DIR}/build/install
- cd ${CI_PROJECT_DIR}/build/
- echo ${LIBRISTRA_BUILD_TYPE}
#- ccache -z
- |
cmake -DCMAKE_INSTALL_PREFIX=${CI_PROJECT_DIR}/build/install \
-DCMAKE_BUILD_TYPE=$LIBRISTRA_BUILD_TYPE \
-DENABLE_UNIT_TESTS=ON \
-DENABLE_LUA=ON \
..
- 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 ARGS="CTEST_OUTPUT_ON_FAILURE=1" || make test ARGS="-V"
#- gcovr .
#######################################################################################
#######################################################################################
#######################################################################################