-
Notifications
You must be signed in to change notification settings - Fork 13
/
.gitlab-ci.yml
68 lines (65 loc) · 2.56 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
stages:
- formatcheck
- inteltest
- clangtest
- gcctest
formatcheck:
stage: formatcheck
script:
- export CLANG_FORMAT_DIR=/u/andysim/anaconda3/bin/
- ./tools/check_style.sh
inteltest:
stage: inteltest
script:
- mkdir -p build_intel
- cd build_intel
- rm -rf *
- export INTEL=/v/apps/intel/composer_xe_2017/compilers_and_libraries_2017.1.132/linux
- source ${INTEL}/bin/iccvars.sh intel64
- source ${INTEL}/mpi/intel64/bin/mpivars.sh
- source ${INTEL}/mkl/bin/mklvars.sh intel64
- export LM_LICENSE_FILE=/v/apps/intel/licenses/2017_l_PK5BF7J3.lic
- export PYTHONPATH=`pwd`/src
- export PATH=/v/apps/cmake/3.7.1-centos7/bin:$PATH
- cmake -DPYTHON_EXECUTABLE=/u/andysim/anaconda3/bin/python -DCMAKE_C_COMPILER=mpiicc -DCMAKE_CXX_COMPILER=mpiicpc -DCMAKE_Fortran_COMPILER=mpiifort -DFFTW_ROOT={MKLROOT} ..
- make -j2
- ctest -VV
- cd ..
- rm -rf build_intel
##clangtest:
## stage: clangtest
## script:
## - mkdir -p build_clang
## - cd build_clang
## - rm -rf *
## - export PYTHONPATH=`pwd`/src
## - export PATH=/v/apps/cmake/3.7.1-centos7/bin:$PATH
## - export PATH=/v/apps/gcc/6.3.0-centos7/bin:$PATH
## - export PATH=/u/andysim/anaconda3/envs/clang/bin:$PATH
## - export LD_LIBRARY_PATH=/v/apps/gcc/6.3.0-centos7/lib64:$LD_LIBRARY_PATH
## - export LD_LIBRARY_PATH=/v/apps/lapack/3.7.0/lib64:${LD_LIBRARY_PATH}
## - export LD_LIBRARY_PATH=/u/andysim/anaconda3/envs/clang/lib:$PATH
## - cmake -DPYTHON_EXECUTABLE=/v/apps/python/3.6.0-centos7/bin/python3 -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_Fortran_COMPILER=gfortran -DCMAKE_PREFIX_PATH="/v/apps/fftw/3.3.5-centos7/avx;/v/apps/fftw/3.3.5-centos7/avx-dp" ..
## - make -j2
## - ctest -VV
## - cd ..
## - rm -rf build_clang
##
##gcctest:
## stage: gcctest
## script:
## - mkdir -p build_gcc
## - cd build_gcc
## - rm -rf *
## - export PYTHONPATH=`pwd`/src
## - export PATH=/v/apps/cmake/3.7.1-centos7/bin:$PATH
## - export PATH=/v/apps/gcc/6.3.0-centos7/bin:$PATH
## - export LD_LIBRARY_PATH=/v/apps/gcc/6.3.0-centos7/lib64:$LD_LIBRARY_PATH
## - export LD_LIBRARY_PATH=/v/apps/lapack/3.7.0/lib64:${LD_LIBRARY_PATH}
## - cmake -DPYTHON_EXECUTABLE=/v/apps/python/3.6.0-centos7/bin/python3 -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_Fortran_COMPILER=gfortran -DENABLE_CODE_COVERAGE=ON -DCMAKE_PREFIX_PATH="/v/apps/fftw/3.3.5-centos7/avx;/v/apps/fftw/3.3.5-centos7/avx-dp" ..
## - make -j2
## - ctest
## - cd src/CMakeFiles/libpmestatic.dir
## - ../../../../external/gcovr/scripts/gcovr . -r ../../../../src/
## - cd ../../../../
## - rm -rf build_gcc