forked from dftbplus/scalapackfx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (39 loc) · 1.08 KB
/
.travis.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
os: linux
dist: focal
# NOTE: Focal offers broken CMake-export file for ScaLAPACK containing a
# a non-existent path for the library. On those systems, the CMake export file
# based auto-detection must be disabled by providing the -DSCALAPACK_LIBRARY
# option.
language: python
python: 3.7
env:
- BUILD_SHARED_LIBS=False
- BUILD_SHARED_LIBS=True
addons:
apt:
packages:
- cmake
- gfortran
- libblas-dev
- liblapack-dev
- libopenmpi-dev
- libscalapack-openmpi-dev
install:
- pip install fypp
script:
- >
FC=gfortran
cmake -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}
-DSCALAPACK_LIBRARY="scalapack-openmpi"
-DCMAKE_INSTALL_PREFIX=${PWD}/_install
-B _build .
&& cmake --build _build -- -j
&& cmake --install _build
- >
CMAKE_PREFIX_PATH="${PWD}/_install:${CMAKE_PREFIX_PATH}"
./test/integration/cmake/runtest.sh _build_cmake
-DSCALAPACK_LIBRARY="scalapack-openmpi"
- >
PKG_CONFIG_PATH="${PWD}/_install/lib/pkgconfig:${PKG_CONFIG_PATH}"
FC=mpifort
./test/integration/pkgconfig/runtest.sh _build_pkgconfig