summaryrefslogtreecommitdiffstats
path: root/.gitlab/artifacts.yml
blob: cc52971f6d1fb9ebdf23cc5162dc5342589f81ad (plain)
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# Lists of paths for artifacts of various stages.

.cmake_build_artifacts:
    artifacts:
        expire_in: 1d
        paths:
            # Test specifications.
            - ${CMAKE_CI_BUILD_DIR}/**/CTestTestfile.cmake

            # Allow CMake to find CMAKE_ROOT.
            - ${CMAKE_CI_BUILD_DIR}/CMakeFiles/CMakeSourceDir.txt

            # Take the install tree.
            - ${CMAKE_CI_BUILD_DIR}/install/

            # We need the main binaries.
            - ${CMAKE_CI_BUILD_DIR}/bin/
            # The cache is needed for the installation test.
            - ${CMAKE_CI_BUILD_DIR}/CMakeCache.txt
            # Test binaries. Eventually these might be better under
            # `Source/Tests` or the like.
            - ${CMAKE_CI_BUILD_DIR}/Tests/EnforceConfig.cmake
            - ${CMAKE_CI_BUILD_DIR}/Tests/CMakeBuildTest.cmake
            - ${CMAKE_CI_BUILD_DIR}/Tests/CMakeBuildDoubleProjectTest.cmake
            - ${CMAKE_CI_BUILD_DIR}/Tests/CMake*/runcompilecommands
            - ${CMAKE_CI_BUILD_DIR}/Tests/CMake*/runcompilecommands.exe
            - ${CMAKE_CI_BUILD_DIR}/Tests/CMake*/test*
            - ${CMAKE_CI_BUILD_DIR}/Tests/CMake*/PseudoMemcheck/valgrind
            - ${CMAKE_CI_BUILD_DIR}/Tests/CMake*/PseudoMemcheck/purify
            - ${CMAKE_CI_BUILD_DIR}/Tests/CMake*/PseudoMemcheck/memcheck_fail
            - ${CMAKE_CI_BUILD_DIR}/Tests/CMake*/PseudoMemcheck/BC
            - ${CMAKE_CI_BUILD_DIR}/Tests/CMake*/PseudoMemcheck/cuda-memcheck
            - ${CMAKE_CI_BUILD_DIR}/Tests/CMake*/PseudoMemcheck/valgrind.exe
            - ${CMAKE_CI_BUILD_DIR}/Tests/CMake*/PseudoMemcheck/purify.exe
            - ${CMAKE_CI_BUILD_DIR}/Tests/CMake*/PseudoMemcheck/memcheck_fail.exe
            - ${CMAKE_CI_BUILD_DIR}/Tests/CMake*/PseudoMemcheck/BC.exe
            - ${CMAKE_CI_BUILD_DIR}/Tests/CMake*/PseudoMemcheck/cuda-memcheck.exe
            - ${CMAKE_CI_BUILD_DIR}/Tests/CMake*/PseudoMemcheck/NoLog
            - ${CMAKE_CI_BUILD_DIR}/Tests/CMake*Lib/*LibTests
            - ${CMAKE_CI_BUILD_DIR}/Tests/CMake*Lib/*LibTests.exe
            - ${CMAKE_CI_BUILD_DIR}/Source/kwsys/cmsysTest*
            - ${CMAKE_CI_BUILD_DIR}/Source/kwsys/testConsoleBufChild.exe
            - ${CMAKE_CI_BUILD_DIR}/Utilities/cmcurl/curltest
            - ${CMAKE_CI_BUILD_DIR}/Utilities/cmcurl/curltest.exe
            - ${CMAKE_CI_BUILD_DIR}/Utilities/KWIML/test/kwiml_test
            - ${CMAKE_CI_BUILD_DIR}/Utilities/KWIML/test/kwiml_test.exe
            - ${CMAKE_CI_BUILD_DIR}/Source/kwsys/*cmsysTestDynload.*
            - ${CMAKE_CI_BUILD_DIR}/Source/kwsys/dynloaddir/cmsysTestDynloadImpl.dll
            - ${CMAKE_CI_BUILD_DIR}/Source/kwsys/dynloaddir/cmsysTestDynloadUse.dll

            # Test directories.
            - ${CMAKE_CI_BUILD_DIR}/Tests/CTest*
            - ${CMAKE_CI_BUILD_DIR}/Tests/Find*
            - ${CMAKE_CI_BUILD_DIR}/Tests/Qt*
            - ${CMAKE_CI_BUILD_DIR}/Tests/RunCMake/
            - ${CMAKE_CI_BUILD_DIR}/Tests/CMakeOnly/
            - ${CMAKE_CI_BUILD_DIR}/Tests/CMakeTests/
            - ${CMAKE_CI_BUILD_DIR}/Tests/CMakeGUI/
            - ${CMAKE_CI_BUILD_DIR}/Tests/FortranC/

            # CTest/CDash information.
            - ${CMAKE_CI_BUILD_DIR}/Testing/
            - ${CMAKE_CI_BUILD_DIR}/DartConfiguation.tcl
            - ${CMAKE_CI_BUILD_DIR}/CTestCustom.cmake
            - ${CMAKE_CI_BUILD_DIR}/cdash-build-id
        reports:
            annotations:
                - ${CMAKE_CI_BUILD_DIR}/annotations.json

.cmake_release_artifacts:
    artifacts:
        expire_in: 5d
        name: "$CMAKE_CI_ARTIFACTS_NAME"
        # Release artifacts are of interest even for failed jobs.
        when: always
        paths:
            # Any packages made.
            - ${CMAKE_CI_BUILD_DIR}/cmake-*-linux-x86_64.*
            - ${CMAKE_CI_BUILD_DIR}/cmake-*-linux-aarch64.*
            - ${CMAKE_CI_BUILD_DIR}/cmake-*-macos*-universal.*
            - ${CMAKE_CI_BUILD_DIR}/cmake-*-windows-x86_64.*
            - ${CMAKE_CI_BUILD_DIR}/cmake-*-windows-i386.*
            - ${CMAKE_CI_BUILD_DIR}/cmake-*-windows-arm64.*
            # Any source packages made.
            - ${CMAKE_CI_BUILD_DIR}/cmake-*.tar.gz
            - ${CMAKE_CI_BUILD_DIR}/cmake-*.zip
            # Any unsigned packages made.
            - ${CMAKE_CI_BUILD_DIR}/unsigned/cmake-*
            - ${CMAKE_CI_BUILD_DIR}/cdash-build-id
        reports:
            annotations:
                - ${CMAKE_CI_BUILD_DIR}/annotations.json

.cmake_cdash_artifacts:
    artifacts:
        expire_in: 1d
        when: always
        reports:
            annotations:
                - ${CMAKE_CI_BUILD_DIR}/annotations.json

.cmake_junit_artifacts:
    artifacts:
        expire_in: 1d
        when: always
        reports:
            annotations:
                - ${CMAKE_CI_BUILD_DIR}/annotations.json
            junit:
                - ${CMAKE_CI_BUILD_DIR}/junit.xml

.cmake_sphinx_artifacts:
    artifacts:
        expire_in: 1d
        when: always
        reports:
            annotations:
                - ${CMAKE_CI_BUILD_DIR}/annotations.json
        paths:
            # Take the sphinx logs.
            - ${CMAKE_CI_BUILD_DIR}/build-*.log
            - ${CMAKE_CI_BUILD_DIR}/linkcheck/output.*
            # Take the HTML output.
            - ${CMAKE_CI_BUILD_DIR}/html/

.cmake_test_artifacts:
    artifacts:
        expire_in: 1d
        # External testing can be useful even if test jobs fail.
        when: always
        reports:
            junit:
                - ${CMAKE_CI_BUILD_DIR}/junit.xml
            annotations:
                - ${CMAKE_CI_BUILD_DIR}/annotations.json
        paths:
            # Take the install tree.
            - ${CMAKE_CI_BUILD_DIR}/install/

.cmake_doc_artifacts:
    artifacts:
        expire_in: 1d
        reports:
            annotations:
                - ${CMAKE_CI_BUILD_DIR}/annotations.json
        paths:
            # Take the install tree.
            - ${CMAKE_CI_BUILD_DIR}/install-doc/

.cmake_org_help_artifacts:
    artifacts:
        expire_in: 1d
        paths:
            - ${CMAKE_CI_BUILD_DIR}/html
        exclude:
            - ${CMAKE_CI_BUILD_DIR}/html/.buildinfo