aboutsummaryrefslogtreecommitdiffstats
path: root/coin/module_config.yaml
blob: 71d4613b08b00ba869b00b40b69a9ae433b82171 (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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
version: 2
accept_configuration:
  condition: or
  conditions:
      - condition: and
        conditions:
          - condition: property  # No cross compilation
            property: host.os
            equals_property: target.os
          - condition: property  # qtnamespace is not supported
            property: configureArgs
            not_contains_value: -qtnamespace
          - condition: property  # no-widgets is notsupported
            property: configureArgs
            not_contains_value: -no-widgets
          - condition: property  # no-gui is not supported
            property: configureArgs
            not_contains_value: -no-gui
          - condition: property   # Following configs are not supported
            property: target.osVersion
            not_in_values: [OPENSUSE_13_01, QEMU, WebAssembly, Ubuntu_18_04, SLES_12, SLES_15]
          - condition: property  # MibnGW and msvc2015 are not supported
            property: target.compiler
            not_in_values: [Mingw73, MSVC2015]
      - condition: and
        conditions:
          - condition: property
            property: target.osVersion
            equals_value: Ubuntu_18_04
          - condition: property
            property: features
            contains_value: LicenseCheck

set_environment: &set_environment
  type: Group
  instructions:
    - type: EnvironmentVariable
      variableName: TARGET_ARCHITECTURE
      variableValue: amd64
      enable_if:
        condition: and
        conditions:
          - condition: property
            property: target.arch
            equals_value: X86_64
          - condition: property
            property: host.os
            equals_value: Windows
    - type: EnvironmentVariable
      variableName: TARGET_ARCHITECTURE
      variableValue: amd64_x86
      enable_if:
        condition: and
        conditions:
          - condition: property
            property: target.arch
            equals_value: X86
          - condition: property
            property: host.os
            equals_value: Windows
    - type: EnvironmentVariable
      variableName: MAKEFLAGS
      variableValue: ""
      enable_if:
         condition: property
         property: host.os
         equals_value: Windows
    - type: AppendToEnvironmentVariable
      variableName: PATH
      variableValue: ;%CI_JOM_PATH%
      enable_if:
         condition: property
         property: host.os
         equals_value: Windows
    - type: PrependToEnvironmentVariable
      variableName: PATH
      variableValue: "\\Users\\qt\\work\\install\\bin;"
      enable_if:
         condition: property
         property: host.os
         equals_value: Windows
    - type: EnvironmentVariable
      variableName: ICC64_18_LDLP
      variableValue: /opt/intel/lib/intel64
      enable_if:
         condition: property
         property: target.compiler
         equals_value: ICC_18
    - type: EnvironmentVariable
      variableName: ICC64_18_PATH # Seems a bit hard to maintain
      variableValue: /opt/intel/compilers_and_libraries_2018.1.163/linux/bin/intel64:/opt/intel/bin
      enable_if:
         condition: property
         property: target.compiler
         equals_value: ICC_18
    - type: AppendToEnvironmentVariable
      variableName: LD_LIBRARY_PATH
      variableValue: :/opt/intel/lib/intel64
      enable_if:
         condition: property
         property: target.compiler
         equals_value: ICC_18
    - type: AppendToEnvironmentVariable
      variableName: PATH
      variableValue: ":{{.Env.ICC64_18_PATH}}"
      enable_if:
         condition: property
         property: target.compiler
         equals_value: ICC_18
    - type: EnvironmentVariable
      variableName: QT_MODULE_TO_TEST
      variableValue: "pyside/pyside-setup"
      enable_if:
         condition: property
         property: features
         contains_value: LicenseCheck

find_path_to_msvc_compiler: &find_path_to_msvc_compiler
     type: Group
     enable_if:
       condition: property
       property: host.os
       equals_value: Windows
     instructions:
       - type: EnvironmentVariable
         variableName: VC_SCRIPT
         variableValue: "%ProgramFiles(x86)%\\Microsoft Visual Studio\\2017\\Professional\\VC\\Auxiliary\\Build\\vcvarsall.bat"
         enable_if:
           condition: property
           property: host.compiler
           equals_value: MSVC2017
       - type: EnvironmentVariable
         variableName: VC_SCRIPT
         variableValue: "%ProgramFiles(x86)%\\Microsoft Visual Studio\\2019\\Professional\\VC\\Auxiliary\\Build\\vcvarsall.bat"
         enable_if:
           condition: property
           property: host.compiler
           equals_value: MSVC2019
       - type: WriteFile
         fileContents: "call \"{{.Env.VC_SCRIPT}}\" {{.Env.TARGET_ARCHITECTURE}} \r\ncmd /c %*"
         filename: "c:\\users\\qt\\MSVC.bat"
         fileMode: 420
         enable_if:
           condition: property
           property: host.os
           equals_value: Windows

run_instructions: &run_instructions
     type: Group
     instructions:
       - type: ExecuteCommand
         command: python -u coin_build_instructions.py --os=MacOS --packaging --instdir=/Users/qt/work/install  --targetOs=MacOS --hostArch=X86_64 --targetArch=X86_64
         maxTimeInSeconds: 14400
         maxTimeBetweenOutput: 300
         enable_if:
           condition: and
           conditions:
             - condition: property
               property: host.os
               equals_value: MacOS
             - condition: property
               property: features
               contains_value: Packaging
         userMessageOnFailure: >
              Failed to execute build instructions on osx
       - type: ExecuteCommand
         command: python -u coin_build_instructions.py --os=MacOS --instdir=/Users/qt/work/install  --targetOs=MacOS --hostArch=X86_64 --targetArch=X86_64
         maxTimeInSeconds: 14400
         maxTimeBetweenOutput: 300
         enable_if:
           condition: and
           conditions:
             - condition: property
               property: host.os
               equals_value: MacOS
             - condition: property
               property: features
               not_contains_value: Packaging
         userMessageOnFailure: >
              Failed to execute build instructions on osx
       - type: ExecuteCommand
         command: python -u coin_build_instructions.py --os=Linux --packaging --instdir=/home/qt/work/install  --targetOs=Linux --hostArch=X86_64 --targetArch=X86_64
         maxTimeInSeconds: 14400
         maxTimeBetweenOutput: 300
         enable_if:
           condition: and
           conditions:
             - condition: property
               property: host.os
               equals_value: Linux
             - condition: property
               property: features
               contains_value: Packaging
         userMessageOnFailure: >
              Failed to execute build instructions on Linux
       - type: ExecuteCommand
         command: python -u coin_build_instructions.py --os=Linux --instdir=/home/qt/work/install  --targetOs=Linux --hostArch=X86_64 --targetArch=X86_64
         maxTimeInSeconds: 14400
         maxTimeBetweenOutput: 300
         enable_if:
           condition: and
           conditions:
             - condition: property
               property: host.os
               equals_value: Linux
             - condition: property
               property: features
               not_contains_value: Packaging
         userMessageOnFailure: >
              Failed to execute build instructions on Linux
       - type: ExecuteCommand
         command: c:\\users\\qt\\MSVC.bat python -u coin_build_instructions.py --os=Windows --packaging --instdir=\Users\qt\work\install  --targetOs=Windows --hostArch=X86_64 --targetArch=X86_64
         maxTimeInSeconds: 14400
         maxTimeBetweenOutput: 300
         enable_if:
           condition: and
           conditions:
             - condition: property
               property: host.os
               equals_value: Windows
             - condition: property
               property: features
               contains_value: Packaging
             - condition: property
               property: target.arch
               equals_property: host.arch
         userMessageOnFailure: >
              Failed to execute build instructions on 64 bit Windows
       - type: ExecuteCommand
         command: c:\\users\\qt\\MSVC.bat python -u coin_build_instructions.py --os=Windows --instdir=\Users\qt\work\install  --targetOs=Windows --hostArch=X86_64 --targetArch=X86_64
         maxTimeInSeconds: 14400
         maxTimeBetweenOutput: 300
         enable_if:
           condition: and
           conditions:
             - condition: property
               property: host.os
               equals_value: Windows
             - condition: property
               property: features
               not_contains_value: Packaging
             - condition: property
               property: target.arch
               equals_property: host.arch
         userMessageOnFailure: >
              Failed to execute build instructions on 64 bit Windows
       - type: ExecuteCommand
         command: c:\\users\\qt\\MSVC.bat python -u coin_build_instructions.py --os=Windows --packaging --instdir=\Users\qt\work\install  --targetOs=Windows --hostArch=X86_64 --targetArch=X86
         maxTimeInSeconds: 14400
         maxTimeBetweenOutput: 300
         enable_if:
           condition: and
           conditions:
             - condition: property
               property: host.os
               equals_value: Windows
             - condition: property
               property: features
               contains_value: Packaging
             - condition: property
               property: target.arch
               equals_value: X86
         userMessageOnFailure: >
              Failed to execute 32 bit build instructions on 64 bit Windows
       - type: ExecuteCommand
         command: c:\\users\\qt\\MSVC.bat python -u coin_build_instructions.py --os=Windows --instdir=\Users\qt\work\install  --targetOs=Windows --hostArch=X86_64 --targetArch=X86
         maxTimeInSeconds: 14400
         maxTimeBetweenOutput: 300
         enable_if:
           condition: and
           conditions:
             - condition: property
               property: host.os
               equals_value: Windows
             - condition: property
               property: features
               not_contains_value: Packaging
             - condition: property
               property: target.arch
               equals_value: X86
         userMessageOnFailure: >
              Failed to execute 32 bit build instructions on 64 bit Windows
run_test_instructions: &run_test_instructions
     type: Group
     enable_if:
       condition: property
       property: features
       not_contains_value: LicenseCheck
     instructions:
       - type: ExecuteCommand
         command: python -u coin_test_instructions.py --os=MacOS --instdir=/Users/qt/work/install  --targetOs=MacOS --hostArch=X86_64 --targetArch=X86_64
         maxTimeInSeconds: 7200
         maxTimeBetweenOutput: 120
         enable_if:
           condition: and
           conditions:
             - condition: property
               property: host.os
               equals_value: MacOS
             - condition: property
               property: features
               not_contains_value: Packaging
         userMessageOnFailure: >
              Failed to execute test instructions on osx
       - type: ExecuteCommand
         command: python -u coin_test_instructions.py --packaging --os=MacOS --instdir=/Users/qt/work/install  --targetOs=MacOS --hostArch=X86_64 --targetArch=X86_64
         maxTimeInSeconds: 7200
         maxTimeBetweenOutput: 120
         enable_if:
           condition: and
           conditions:
             - condition: property
               property: host.os
               equals_value: MacOS
             - condition: property
               property: features
               contains_value: Packaging
         userMessageOnFailure: >
              Failed to execute test instructions on osx
       - type: ExecuteCommand
         command: python -u coin_test_instructions.py --os=Linux --instdir=/home/qt/work/install  --targetOs=Linux --hostArch=X86_64 --targetArch=X86_64
         maxTimeInSeconds: 14400
         maxTimeBetweenOutput: 120
         enable_if:
           condition: and
           conditions:
             - condition: property
               property: host.os
               equals_value: Linux
             - condition: property
               property: features
               not_contains_value: Packaging
         userMessageOnFailure: >
              Failed to execute test instructions on Linux
       - type: ExecuteCommand
         command: python -u coin_test_instructions.py --packaging --os=Linux --instdir=/home/qt/work/install  --targetOs=Linux --hostArch=X86_64 --targetArch=X86_64
         maxTimeInSeconds: 14400
         maxTimeBetweenOutput: 120
         enable_if:
           condition: and
           conditions:
             - condition: property
               property: host.os
               equals_value: Linux
             - condition: property
               property: features
               contains_value: Packaging
         userMessageOnFailure: >
              Failed to execute test instructions on Linux
       - type: ExecuteCommand
         command: c:\\users\\qt\\MSVC.bat python -u coin_test_instructions.py --os=Windows --instdir=\Users\qt\work\install  --targetOs=Windows --hostArch=X86_64 --targetArch=X86_64
         maxTimeInSeconds: 7200
         maxTimeBetweenOutput: 120
         enable_if:
           condition: and
           conditions:
             - condition: property
               property: host.os
               equals_value: Windows
             - condition: property
               property: target.arch
               equals_property: host.arch
             - condition: property
               property: features
               not_contains_value: Packaging
         userMessageOnFailure: >
              Failed to execute test instructions on 64 bit Windows
       - type: ExecuteCommand
         command: c:\\users\\qt\\MSVC.bat python -u coin_test_instructions.py --os=Windows --instdir=\Users\qt\work\install  --targetOs=Windows --hostArch=X86_64 --targetArch=X86
         maxTimeInSeconds: 7200
         maxTimeBetweenOutput: 120
         enable_if:
           condition: and
           conditions:
             - condition: property
               property: host.os
               equals_value: Windows
             - condition: property
               property: target.arch
               equals_value: X86
             - condition: property
               property: features
               not_contains_value: Packaging
         userMessageOnFailure: >
              Failed to execute test instructions on 64 bit Windows
       - type: ExecuteCommand
         command: c:\\users\\qt\\MSVC.bat python -u coin_test_instructions.py --packaging --os=Windows --instdir=\Users\qt\work\install  --targetOs=Windows --hostArch=X86_64 --targetArch=X86_64
         maxTimeInSeconds: 7200
         maxTimeBetweenOutput: 120
         enable_if:
           condition: and
           conditions:
             - condition: property
               property: host.os
               equals_value: Windows
             - condition: property
               property: target.arch
               equals_property: host.arch
             - condition: property
               property: features
               contains_value: Packaging
         userMessageOnFailure: >
              Failed to execute 32 bit test instructions on 64 bit Windows
       - type: ExecuteCommand
         command: c:\\users\\qt\\MSVC.bat python -u coin_test_instructions.py --packaging --os=Windows --instdir=\Users\qt\work\install  --targetOs=Windows --hostArch=X86_64 --targetArch=X86
         maxTimeInSeconds: 7200
         maxTimeBetweenOutput: 120
         enable_if:
           condition: and
           conditions:
             - condition: property
               property: host.os
               equals_value: Windows
             - condition: property
               property: target.arch
               equals_value: X86
             - condition: property
               property: features
               contains_value: Packaging
         userMessageOnFailure: >
              Failed to execute 32 bit test instructions on 64 bit Windows

relocate_pyside: &relocate_pyside
     type: Group
     enable_if:
       condition: property
       property: features
       not_contains_value: LicenseCheck
     instructions:
       - type: ChangeDirectory
         directory: "{{.AgentWorkingDir}}/pyside"
         maxTimeInSeconds: 300
         maxTimeBetweenOutput: 120
         userMessageOnFailure: >
              Failed to change to pyside dir
       - type: ExecuteCommand
         command: c:\\users\\qt\\MSVC.bat rd /s /q pyside-setup
         maxTimeInSeconds: 300
         maxTimeBetweenOutput: 120
         enable_if:
           condition: property
           property: host.os
           equals_value: Windows
         userMessageOnFailure: >
              Failed to remove pyside-setup dir
       - type: ExecuteCommand
         command: /bin/rm -rf pyside-setup
         maxTimeInSeconds: 300
         maxTimeBetweenOutput: 120
         enable_if:
           condition: property
           property: host.os
           not_equals_value: Windows
         userMessageOnFailure: >
              Failed to remove pyside-setup dir
       - type: InstallBinaryArchive
         relativeStoragePath: "{{.Env.MODULE_ARTIFACTS_RELATIVE_STORAGE_PATH}}/artifacts.tar.gz"
         directory: "pyside"
         maxTimeInSeconds: 1200
         maxTimeBetweenOutput: 1200
       - type: ChangeDirectory
         directory: "{{.AgentWorkingDir}}\\pyside\\pyside-setup"
         maxTimeInSeconds: 7200
         maxTimeBetweenOutput: 120
         enable_if:
           condition: property
           property: host.os
           equals_value: Windows
         userMessageOnFailure: >
              Failed to install binary artifacts
       - type: ChangeDirectory
         directory: "{{.AgentWorkingDir}}/pyside/pyside-setup"
         maxTimeInSeconds: 7200
         maxTimeBetweenOutput: 120
         enable_if:
           condition: property
           property: host.os
           not_equals_value: Windows
         userMessageOnFailure: >
              Failed to change to pyside-setup dir

upload_pyside: &upload_pyside
     type: Group
     instructions:
       - type: UploadArtifact
         archiveDirectory: "{{.AgentWorkingDir}}\\pyside"
         transferType: UploadModuleBuildArtifact
         maxTimeInSeconds: 1200
         maxTimeBetweenOutput: 1200
         enable_if:
           condition: property
           property: host.os
           equals_value: Windows
       - type: UploadArtifact
         archiveDirectory: "{{.AgentWorkingDir}}/pyside"
         transferType: UploadModuleBuildArtifact
         maxTimeInSeconds: 1200
         maxTimeBetweenOutput: 1200
         enable_if:
           condition: property
           property: host.os
           not_equals_value: Windows

instructions:
     LicenseCheck:
       - type: ChangeDirectory
         directory: "{{.AgentWorkingDir}}"
       - type: InstallSourceArchive
         maxTimeInSeconds: 600
         maxTimeBetweenOutput: 600
         project: qt/qtbase
         ref: 5.14
         directory: qt/qtbase
         userMessageOnFailure: >
                 Could not install source archive. Please investigate why.
       - type: InstallSourceArchive
         maxTimeInSeconds: 600
         maxTimeBetweenOutput: 600
         project: qt/qtqa
         ref: master
         directory: qt/qtqa-latest
         userMessageOnFailure: >
                 Could not install source archive. Please investigate why.
       - type: EnvironmentVariable
         variableName: QT_MODULE_TO_TEST
         variableValue: pyside/pyside-setup
         userMessageOnFailure: >
                 Failed to set environment variable. This should not happen.
       - type: ExecuteCommand
         command: perl qt/qtqa-latest/tests/prebuild/license/tst_licenses.pl
         maxTimeInSeconds: 7200
         maxTimeBetweenOutput: 120
         userMessageOnFailure: >
              Failed to run license check script.

     Build:
      - *set_environment
      - *find_path_to_msvc_compiler
      - *run_instructions
      - *upload_pyside
     Test:
      - *set_environment
      - *find_path_to_msvc_compiler
      - *relocate_pyside
      - *run_test_instructions