.gitlab-ci.yml 2.31 KB
Newer Older
1
2
variables:
  GIT_SUBMODULE_STRATEGY: normal
LEFEBVREJP email's avatar
LEFEBVREJP email committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
stages:
  - test
  - analysis

mac_llvm_testing:
  tags:
    - mac
  script:
    - which git
    - git --version
    - 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}
LEFEBVREJP email's avatar
LEFEBVREJP email committed
19
        -DOPENSSL_ROOT_DIR=/opt/openssl/1.1.1d/
20
        -DLibSSH_DIR=/opt/libssh/0.9.3/lib/cmake/libssh/
LEFEBVREJP email's avatar
LEFEBVREJP email committed
21
22
23
24
        -DCMAKE_BUILD_TYPE=DEBUG
        -Drsm_ENABLE_TESTS=ON
        -Drsm_ENABLE_rsmcore=ON
        -Drsm_ENABLE_rsmwidgets=OFF ..
25
26
27
28
    - ctest --verbose --output-on-failure
        -D ExperimentalStart
        -D ExperimentalBuild
        -D ExperimentalTest
LEFEBVREJP email's avatar
LEFEBVREJP email committed
29
30
31
32
33
34
35
36
37
38
39
40
41

linux_gcc_testing:
  tags:
    - linux
  script:
    - which git
    - git --version
    - 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}
LEFEBVREJP email's avatar
LEFEBVREJP email committed
42
43
        -DOPENSSL_ROOT_DIR=/opt/vendors/openssl/1.1.1d/
        -DLibSSH_DIR=/opt/vendors/libssh/0.9.3/lib64/cmake/libssh/
LEFEBVREJP email's avatar
LEFEBVREJP email committed
44
45
46
47
        -DCMAKE_BUILD_TYPE=Release
        -Drsm_ENABLE_TESTS=ON
        -Drsm_ENABLE_rsmcore=ON
        -Drsm_ENABLE_rsmwidgets=OFF ..
48
49
50
51
    - ctest --verbose --output-on-failure
        -D ExperimentalStart
        -D ExperimentalBuild
        -D ExperimentalTest
LEFEBVREJP email's avatar
LEFEBVREJP email committed
52
53
54
55
56
57
58
59
60
61

linux_analysis:
  stage: analysis
  tags:
    - linux
  script:
    - which git
    - git --version
    - mkdir build
    - cd build
62
    - module load cmake qt/5.9.0
LEFEBVREJP email's avatar
LEFEBVREJP email committed
63
64
65
66
67
    - 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}
LEFEBVREJP email's avatar
LEFEBVREJP email committed
68
69
        -DOPENSSL_ROOT_DIR=/opt/vendors/openssl/1.1.1d/
        -DLibSSH_DIR=/opt/vendors/libssh/0.9.3/lib64/cmake/libssh/
LEFEBVREJP email's avatar
LEFEBVREJP email committed
70
71
72
        -DCMAKE_BUILD_TYPE=DEBUG
        -Drsm_ENABLE_COVERAGE_TESTING=ON
        -Drsm_ENABLE_TESTS=ON
73
        -Drsm_ENABLE_rsmcore=ON
LEFEBVREJP email's avatar
LEFEBVREJP email committed
74
        -Drsm_ENABLE_rsmwidgets=OFF ..
75
76
77
78
79
80
    - ctest --verbose --output-on-failure
        -D ExperimentalStart
        -D ExperimentalBuild
        -D ExperimentalTest
        -D ExperimentalMemCheck
        -D ExperimentalCoverage
LEFEBVREJP email's avatar
LEFEBVREJP email committed
81
82
83
84
85
86
  allow_failure: true

windows_msvc_testing:
  tags:
    - nsmwin10
  script:
87
    - ci\windows_testing.bat