aboutsummaryrefslogtreecommitdiff
path: root/tcwg-benchmark-release.yaml
blob: ffa2f70f76a276485d359e9e187ef5a7f7508a8c (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
- job:
    name: tcwg-benchmark-release
    project-type: matrix
    defaults: global
    properties:
        - authorization:
            linaro:
                - job-read
                - job-extended-read
                - job-build
                - job-cancel
        - build-discarder:
            days-to-keep: 30
            num-to-keep: 100
    parameters:
        - string:
            name: release_url
            default: 'http://releases.linaro.org/components/toolchain/binaries/latest'
            description: 'Release URL'
        - string:
            name: target_list
            default: 'aarch64-linux-gnu armv8l-linux-gnueabihf arm-linux-gnueabi arm-linux-gnueabihf'
            description: 'List of targets'
        - string:
            name: extension_list
            default: 'O2g'
            description: 'List of build profiles: O2, O3, O2g, O3g, Ofast, Os'
        - text:
            name: benchmark_params
            default: |
              bench_list=bzip2
              cflags=
              testmode=verify
              iterations=1
              sysroot=tarball
              fileserver=dev-01.tcwglab
              forceinstall=false
              run_profile=parallel3x3
              scripts_branch=master
              bmk_branch=master
            description: 'Benchmark parameters, see tcwg-benchmark job'
    disabled: false
    node: tcwg-bmk-coordinator
    concurrent: true
    display-name: 'TCWG ZZZ Benchmark Release'
    axes:
        - axis:
            type: slave
            name: label
            values:
                - tcwg-coordinator
        - axis:
            type: dynamic
            name: target
            values:
                - target_list
        - axis:
            type: dynamic
            name: extension
            values:
                - extension_list
    execution-strategy:
        sequential: false
    wrappers:
        - timeout:
            timeout: 600
        - timestamps
        - ssh-agent-credentials:
            users:
                - 'tcwg-benchmark'
    builders:
      - shell: |
          #!/bin/bash

          set -ex

          # Note that armv8l-linux-gnueabihf will not match "arm-"*, and will run on tx1.
          case "$target" in
            "arm-"*) board="tk1" ;;
            *) board="tx1" ;;
          esac

          cat > params <<EOF
          toolchain_url=$release_url/$target/gcc-*-x86_64_$target.tar.xz
          target_list=$board
          extension=$extension
          EOF
          echo "$benchmark_params" >> params
      - trigger-builds:
          - project: 'tcwg-benchmark'
            property-file: params
            block: true