.gitlab-ci.yml 4.57 KB
Newer Older
Norby, Tom's avatar
Norby, Tom committed
1
2
3
variables:
  GIT_SUBMODULE_STRATEGY: normal

4
5
6
7
stages:
  - test
  - analysis

LEFEBVREJP email's avatar
LEFEBVREJP email committed
8
9
10
11
12
13
mac_gcc_testing:
  tags:
    - mac
  script:
    - which git
    - git --version
Norby, Tom's avatar
Norby, Tom committed
14
    - module load cmake gcc/4.8.5 qt/5.9.1 vtk/8.1.0
LEFEBVREJP email's avatar
LEFEBVREJP email committed
15
16
17
18
19
20
    - which cmake
    - which python
    - python --version
    - python TriBITS/tribits/ci_support/clone_extra_repos.py
    - mkdir build
    - cd build
21
22
23
24
25
26
27
28
29
    - cmake -DTasmanian_DIR=/opt/tasmanian/6.0 ^
        -DBUILDNAME=$(uname -s)-GCC-4.8.5-Debug-${CI_BUILD_REF_NAME} ^
        -DCMAKE_BUILD_TYPE=DEBUG ^
        -Dradix_ENABLE_TESTS=ON ^
        -Dradix_ENABLE_SECONDARY_TESTED_CODE=ON ^
        -Dradix_ENABLE_TESTS=ON ^
        -DTPL_ENABLE_VTK=ON ^
        -Dradix_ENABLE_radixplot=OFF ^
        -Dradix_ENABLE_radixwidgets=OFF ..
30
31
32
    - ctest --verbose --output-on-failure ^
        -D ExperimentalStart ^
        -D ExperimentalBuild ^
Norby, Tom's avatar
Norby, Tom committed
33
        -D ExperimentalTest
LEFEBVREJP email's avatar
LEFEBVREJP email committed
34
35
36
37
38
39
40

mac_llvm_testing:
  tags:
    - mac
  script:
    - which git
    - git --version
Norby, Tom's avatar
Norby, Tom committed
41
    - module load cmake qt/5.9.1 vtk/8.1.0
LEFEBVREJP email's avatar
LEFEBVREJP email committed
42
43
44
45
46
47
    - which python
    - python --version
    - python TriBITS/tribits/ci_support/clone_extra_repos.py
    - mkdir build
    - cd build
    - which cmake
48
    - export radix_ENABLE_Fortran=OFF
49
50
51
52
53
54
55
56
57
    - cmake -DTasmanian_DIR=/opt/tasmanian/6.0 ^
        -DBUILDNAME=$(uname -s)-LLVM-Debug-${CI_BUILD_REF_NAME} ^
        -DCMAKE_BUILD_TYPE=DEBUG ^
        -Dradix_ENABLE_TESTS=ON ^
        -Dradix_ENABLE_SECONDARY_TESTED_CODE=ON ^
        -Dradix_ENABLE_TESTS=ON ^
        -DTPL_ENABLE_VTK=ON ^
        -Dradix_ENABLE_radixplot=OFF ^
        -Dradix_ENABLE_radixwidgets=OFF ..
58
59
60
    - ctest --verbose --output-on-failure ^
        -D ExperimentalStart ^
        -D ExperimentalBuild ^
Norby, Tom's avatar
Norby, Tom committed
61
        -D ExperimentalTest
LEFEBVREJP email's avatar
LEFEBVREJP email committed
62

63
linux_gcc_testing:
64
65
66
67
68
69
70
71
72
73
  tags:
    - linux
  script:
    - which git
    - git --version
    - which python
    - python --version
    - python TriBITS/tribits/ci_support/clone_extra_repos.py
    - mkdir build
    - cd build
74
    - module load cmake qt/5.9.0 vtk/8.1.0
75
    - which cmake
76
77
78
79
80
81
82
83
84
    - cmake -DTasmanian_DIR=/opt/vendors/tasmanian/6.0 ^
        -DBUILDNAME=$(uname -s)-GCC-4.8.5-Release-${CI_BUILD_REF_NAME} ^
        -DCMAKE_BUILD_TYPE=Release ^
        -Dradix_ENABLE_TESTS=ON ^
        -DENABLE_PYTHON_WRAPPERS=ON ^
        -Dradix_ENABLE_SECONDARY_TESTED_CODE=ON ^
        -Dradix_ENABLE_TESTS=ON -DTPL_ENABLE_VTK=ON ^
        -Dradix_ENABLE_radixplot=OFF ^
        -Dradix_ENABLE_radixwidgets=OFF ..
85
86
87
88
    - ctest --verbose --output-on-failure ^
        -D ExperimentalStart ^
        -D ExperimentalBuild ^
        -D ExperimentalTest
89
90
91

linux_analysis:
  stage: analysis
92
93
  tags:
    - linux
LEFEBVREJP email's avatar
LEFEBVREJP email committed
94
  script:
95
96
    - which git
    - git --version
97
    - which python
98
    - python --version
LEFEBVREJP email's avatar
LEFEBVREJP email committed
99
    - python TriBITS/tribits/ci_support/clone_extra_repos.py
LEFEBVREJP email's avatar
LEFEBVREJP email committed
100
101
    - mkdir build
    - cd build
Norby, Tom's avatar
Norby, Tom committed
102
    - module load cmake valgrind
103
    - which cmake
104
105
106
107
108
109
110
111
112
113
114
    - cmake -DTasmanian_DIR=/opt/vendors/tasmanian/6.0/ ^
        -DCOVERAGE_EXTRA_FLAGS="-s ${CI_PROJECT_DIR}/googletest -d" ^
        -DMEMCHECK_COMMAND=$(which valgrind) ^
        -DBUILDNAME=$(uname -s)-GCC-4.8.5-Debug-${CI_BUILD_REF_NAME} ^
        -DCMAKE_BUILD_TYPE=DEBUG ^
        -Dradix_ENABLE_COVERAGE_TESTING=ON ^
        -Dradix_ENABLE_TESTS=ON ^
        -Dradix_ENABLE_SECONDARY_TESTED_CODE=ON ^
        -Dradix_ENABLE_TESTS=ON ^
        -Dradix_ENABLE_radixplot=OFF ^
        -Dradix_ENABLE_radixwidgets=OFF ..
115
116
117
118
119
120
    - ctest --verbose --output-on-failure^
        -D ExperimentalStart ^
        -D ExperimentalBuild ^
        -D ExperimentalTest ^
        -D ExperimentalMemCheck ^
        -D ExperimentalCoverage
121
122
  allow_failure: true

123
linux_openmpi_testing:
124
125
  tags:
    - linux
126
127
128
129
130
  script:
    - which git
    - git --version
    - which python
    - python --version
LEFEBVREJP email's avatar
LEFEBVREJP email committed
131
    - python TriBITS/tribits/ci_support/clone_extra_repos.py
132
133
    - mkdir build_mpi
    - cd build_mpi
134
    - module load cmake openmpi/1.8.1
135
    - which cmake
136
137
138
139
140
141
142
143
144
    - cmake -DBUILDNAME=$(uname -s)-MPI-1.8.1-Debug-${CI_BUILD_REF_NAME} ^
        -DTPL_ENABLE_MPI=ON ^
        -DMPI_BASEDIR=`dirname $(dirname $(which mpicc))` ^
        -DCMAKE_BUILD_TYPE=DEBUG ^
        -Dradix_ENABLE_TESTS=ON ^
        -Dradix_ENABLE_radixpara=ON ^
        -Dradix_ENABLE_googletest=ON ^
        -Dradix_ENABLE_radixdl=ON ^
        -Dradix_ENABLE_radixcore=ON ..
145
146
147
148
    - ctest --verbose --output-on-failure ^
        -D ExperimentalStart ^
        -D ExperimentalBuild ^
        -D ExperimentalTest
149

150
windows_mingw_testing:
151
152
153
  tags:
    - windows
  script:
Norby, Tom's avatar
Norby, Tom committed
154
    - ci\windows_mingw_testing.bat
155

156
157
158
159
windows_msvc_testing:
  tags:
    - nsmwin10
  script:
Norby, Tom's avatar
Norby, Tom committed
160
    - ci\windows_msvc_testing.bat
161

162
windows_intel_shared_testing:
163
164
165
  tags:
    - nsmwin10
  script:
Norby, Tom's avatar
Norby, Tom committed
166
    - ci\windows_intel_testing.bat