Skip to content

Commit 9aa9ff3

Browse files
committed
GitLab CI setup
1 parent c130818 commit 9aa9ff3

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.gitlab-ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
stages:
2+
- build
3+
4+
default:
5+
tags: [ docker ]
6+
7+
before_script:
8+
#- apt-get install -yq libscalapack-openmpi-dev
9+
10+
build:
11+
stage: build
12+
timeout: 3h
13+
image: valeevgroup/${IMAGE}
14+
variables:
15+
CXX: ${CXX}
16+
script:
17+
- mkdir build
18+
- cd build
19+
- cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/gitlab-ci.cmake ..
20+
- make -j1 tiledarray
21+
- make -j1 examples
22+
- make -j1 ta_test
23+
parallel:
24+
matrix:
25+
- CXX: [ g++, clang++-9 ]
26+
IMAGE : [ "ubuntu:20.04" ]

cmake/gitlab-ci.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
set(TA_BUILD_UNITTEST TRUE)
2+
set(TA_PYTHON ON)
3+
set(ENABLE_SCALAPACK ON)
4+
set(blacs_LIBRARIES "scalapack-openmpi")
5+
set(scalapack_LIBRARIES "scalapack-openmpi")
6+
set(lapack_LIBRARIES "lapack")

0 commit comments

Comments
 (0)