Commit 60894bfb authored by Lefebvre, Jordan's avatar Lefebvre, Jordan
Browse files

WIP: gitlab-ci.

parent a1a7bef4
Pipeline #86734 failed
stages:
- test
- analysis
.windows_before_script: &windows_before_script
before_script:
- set PATH=%PATH%;c:\vendors\mingw-w64\x86_64-4.8.5-posix-seh-rt_v4-rev0\mingw64\bin;c:\vendors\mingw-w64\qt\5.9.1\bin
.windows_msvc_before_script: &windows_msvc_before_script
before_script:
- set PATH=c:\Qt\5.9.1\msvc2013_64\bin;%PATH%;c:\Program Files (x86)\NSIS\Bin
mac_llvm_testing:
tags:
- mac
script:
- which git
- git --version
- git submodule init
- git submodule update
- module load cmake qt/5.9.1
- which cmake
- mkdir build
- cd build
- export rsm_ENABLE_Fortran=OFF
- cmake -DBUILDNAME=$(uname -s)-LLVM-Debug-${CI_BUILD_REF_NAME}
-DOPENSSL_ROOT_DIR=/opt/openssl/1.1.1d/
-DLibSSH_DIR=/opt/libssh/
-DCMAKE_BUILD_TYPE=DEBUG
-Drsm_ENABLE_TESTS=ON
-Drsm_ENABLE_rsmcore=ON
-Drsm_ENABLE_rsmwidgets=OFF ..
- ctest -D ExperimentalStart -D ExperimentalBuild -D ExperimentalTest -D ExperimentalSubmit
linux_gcc_testing:
tags:
- linux
script:
- which git
- git --version
- git submodule init
- git submodule update
- mkdir build
- cd build
- module load cmake qt/5.9.0
- which cmake
- module load valgrind
- cmake -DBUILDNAME=$(uname -s)-GCC-4.8.5-Release-${CI_BUILD_REF_NAME}
-DCMAKE_BUILD_TYPE=Release
-Drsm_ENABLE_TESTS=ON
-Drsm_ENABLE_rsmcore=ON
-Drsm_ENABLE_rsmwidgets=OFF ..
- ctest -D ExperimentalStart -D ExperimentalBuild -D ExperimentalTest -D ExperimentalSubmit
linux_analysis:
stage: analysis
tags:
- linux
script:
- which git
- git --version
- git submodule init
- git submodule update
- mkdir build
- cd build
- module load cmake
- which cmake
- module load valgrind
- cmake -D COVERAGE_EXTRA_FLAGS="-s ${CI_PROJECT_DIR}/googletest -d"
-D MEMCHECK_COMMAND=$(which valgrind)
-DBUILDNAME=$(uname -s)-GCC-4.8.5-Debug-${CI_BUILD_REF_NAME}
-DCMAKE_BUILD_TYPE=DEBUG
-Drsm_ENABLE_COVERAGE_TESTING=ON
-Drsm_ENABLE_TESTS=ON
-Drsm_ENABLE_rsmore=ON
-Drsm_ENABLE_rsmwidgets=OFF ..
- ctest -D ExperimentalStart -D ExperimentalBuild -D ExperimentalTest -D ExperimentalMemCheck -D ExperimentalCoverage -D ExperimentalSubmit
allow_failure: true
windows_msvc_testing:
tags:
- nsmwin10
<<: *windows_msvc_before_script
script:
- 'call "c:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/vcvarsall.bat" amd64'
- where git
- git --version
- git submodule init
- git submodule update
- cmake --version
- mkdir build
- cd build
- SET VTK_DIR=c:\vendors\cl\vtk\8.1.0\
- SET rsm_ENABLE_Fortran=OFF
- cmake -DBUILD_SHARED_LIBS=ON
-DBUILDNAME=Windows-CL-18-Release-%CI_BUILD_REF_NAME%
-DCMAKE_BUILD_TYPE=RELEASE
-Drsm_ENABLE_TESTS=ON
-Drsm_ENABLE_rsmcore=ON
-Drsm_ENABLE_rsmwidgets=OFF
-G "NMake Makefiles" ..
- ctest -D ExperimentalStart -D ExperimentalBuild -D ExperimentalTest -D ExperimentalSubmit
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment