-
Notifications
You must be signed in to change notification settings - Fork 20
/
.gitlab-ci.yml
43 lines (42 loc) · 1.46 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
before_script:
- source /opt/casl-tools/gcc-8.3.0/load_dev_env.sh
- BASE_DIR=/localhome/gitlab-runner
- ENV_BASE=/opt/casl-tools/gcc-8.3.0
- which gcc
- echo $ENV_BASE
- echo $BASE_DIR
release:
tags:
- linux
variables:
BLD_NAME: "gnu_release_debug"
BLD_DIR: "/tmp/$BLD_NAME"
artifacts:
paths:
- LastTestsFailed.log
- LastTest.log
- CTestCostData.txt
- make.out
expire_in: 1 week
when: always
script:
- TPL_DIR="${TRIBITS_DEV_ENV_COMPILER_BASE}/tpls/opt"
- HDF5_LIBRARY_NAMES="hdf5_hl;hdf5;hdf5_cpp;hdf5_fortran"
- HDF5_INCLUDE_DIRS="${TPL_DIR}/hdf5-1.10.1/include"
- HDF5_LIBRARY_DIRS="${TPL_DIR}/hdf5-1.10.1/lib"
- which gcc
- SRC_DIR=`pwd`
- mkdir -p $BLD_DIR
- cd $BLD_DIR
- rm -rf *
- cmake -DFutility_ENABLE_DBC:BOOL=ON -DCMAKE_Fortran_COMPILER=`which gfortran` -DCMAKE_C_COMPILER=`which gcc` -DCMAKE_CXX_COMPILER=`which g++` -DTPL_ENABLE_HDF5=ON -DHDF5_LIBRARY_DIRS:FILEPATH=${HDF5_LIBRARY_DIRS} -DHDF5_INCLUDE_DIRS:FILEPATH=${HDF5_INCLUDE_DIRS} -DHDF5_LIBRARY_NAMES:STRING=${HDF5_LIBRARY_NAMES} $SRC_DIR
- make -j28 |& tee make.out
- ctest -j28
- (exit `grep -B 4 'Unused \(PRIVATE module \)*variable' make.out | grep 'f90' | wc -l`)
- (exit `grep "Unused parameter" make.out | grep -vc "mpi_"`)
after_script:
- SRC_DIR=`pwd`
- chmod -R a=u $BLD_DIR
- cd $BLD_DIR
- cp $BLD_DIR/Testing/Temporary/* $SRC_DIR/
- cp $BLD_DIR/make.out $SRC_DIR/