-
Notifications
You must be signed in to change notification settings - Fork 41
/
.gitlab-ci.yml
70 lines (60 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
69
70
image: gcc
default:
before_script:
# non-free is needed for libparmetis-dev
- echo "deb http://http.us.debian.org/debian stable main contrib non-free" >> /etc/apt/sources.list
- apt update
- apt -y install gcc-11 g++-11 gfortran-11
- update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 60 --slave /usr/bin/g++ g++ /usr/bin/g++-11
- update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-11 60
- apt -y install openmpi-bin libopenmpi-dev libmetis-dev libparmetis-dev libblas-dev liblapack-dev libscalapack-mpi-dev cmake
stages:
- build
- test
build:
stage: build
script:
- export BLAS_LIB=/usr/lib/x86_64-linux-gnu/libblas.so
- export LAPACK_LIB=/usr/lib/x86_64-linux-gnu/liblapack.so
- export SCALAPACK_LIB="/usr/lib/x86_64-linux-gnu/libscalapack-openmpi.so"
- printf "${BLUE} PG; Installing STRUMPACK from source\n"
- pwd
- rm -rf build && mkdir -p build && cd build
- cmake .. -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_COMPILER=mpicc -DCMAKE_CXX_COMPILER=mpic++ -DCMAKE_Fortran_COMPILER=mpif90 -DCMAKE_INSTALL_PREFIX=. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_VERBOSE_MAKEFILE:BOOL=OFF -DTPL_BLAS_LIBRARIES="$BLAS_LIB" -DTPL_LAPACK_LIBRARIES="$LAPACK_LIB" -DTPL_SCALAPACK_LIBRARIES="$SCALAPACK_LIB"
- make && make install && make examples
- cd ../
- printf "${BLUE} PG; Done installing STRUMPACK from source\n"
artifacts:
paths:
- build
expire_in: 1 week
test 0/5:
stage: test
script:
- export TEST_NUMBER=0
- sh .ci_tests.sh
test 1/5:
stage: test
script:
- export TEST_NUMBER=1
- sh .ci_tests.sh
test 2/5:
stage: test
script:
- export TEST_NUMBER=2
- sh .ci_tests.sh
test 3/5:
stage: test
script:
- export TEST_NUMBER=3
- sh .ci_tests.sh
test 4/5:
stage: test
script:
- export TEST_NUMBER=4
- sh .ci_tests.sh
test 5/5:
stage: test
script:
- export TEST_NUMBER=5
- sh .ci_tests.sh