.gitlab-ci.yml 3.26 KB
Newer Older
LEFEBVREJP email's avatar
LEFEBVREJP email committed
1
2
3
4
5
6
stages:
  - test
  - analysis

.windows_msvc_before_script: &windows_msvc_before_script
  before_script:
7
          - set PATH=c:\Qt\5.9.1\msvc2013_64\bin;%PATH%;c:\Program Files (x86)\NSIS\Bin;c:\vendors\cl\libssh\0.9.3\bin;c:\vendors\cl\openssl\1.1.1d\bin
LEFEBVREJP email's avatar
LEFEBVREJP email committed
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

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}
LEFEBVREJP email's avatar
LEFEBVREJP email committed
23
        -DOPENSSL_ROOT_DIR=/opt/openssl/1.1.1d/
24
        -DLibSSH_DIR=/opt/libssh/0.9.3/lib/cmake/libssh/
LEFEBVREJP email's avatar
LEFEBVREJP email committed
25
26
27
28
        -DCMAKE_BUILD_TYPE=DEBUG
        -Drsm_ENABLE_TESTS=ON
        -Drsm_ENABLE_rsmcore=ON
        -Drsm_ENABLE_rsmwidgets=OFF ..
LEFEBVREJP email's avatar
LEFEBVREJP email committed
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
    - 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}
LEFEBVREJP email's avatar
LEFEBVREJP email committed
45
46
        -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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
        -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}
LEFEBVREJP email's avatar
LEFEBVREJP email committed
70
71
        -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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
        -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 rsm_ENABLE_Fortran=OFF
94
    - cmake -DBUILD_SHARED_LIBS=OFF
LEFEBVREJP email's avatar
LEFEBVREJP email committed
95
        -DBUILDNAME=Windows-CL-18-Release-%CI_BUILD_REF_NAME%
96
97
        -DOPENSSL_ROOT_DIR=c:/vendors/cl/openssl/1.1.1d/
        -DLibSSH_DIR=c:/vendors/cl/libssh/0.9.3/lib/cmake/libssh/
LEFEBVREJP email's avatar
LEFEBVREJP email committed
98
99
100
101
102
        -DCMAKE_BUILD_TYPE=RELEASE
        -Drsm_ENABLE_TESTS=ON
        -Drsm_ENABLE_rsmcore=ON
        -Drsm_ENABLE_rsmwidgets=OFF
        -G "NMake Makefiles" ..
103
    - ctest -D ExperimentalStart -D ExperimentalBuild -D ExperimentalTest -D ExperimentalSubmit