aboutsummaryrefslogtreecommitdiff
path: root/odp-api-style-check.yaml
blob: f81771341e7c4abe4933de7d82de06e05471da41 (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
- job:
    name: odp-api-style-check
    project-type: matrix
    defaults: global
    logrotate:
        daysToKeep: 30
        numToKeep: 30
    properties:
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
            linaro:
                - job-read
                - job-extended-read
                - job-build
                - job-cancel
    disabled: false
    node: master
    child-workspace: .
    display-name: 'ODP API style check'
    triggers:
        - timed: '@daily'
    axes:
        - axis:
            type: user-defined
            name: platform_type
            values:
                - generic
                - dpdk
        - axis:
            type: user-defined
            name: git_branch
            values:
                - master
                - api-next
        - axis:
            type: slave
            name: label
            values:
                - docker-utopic
    execution-strategy:
        combination-filter: |
            !(platform_type=="dpdk" && git_branch=="api-next")
    wrappers:
        - timestamps
        - matrix-tie-parent:
            node: master
    builders:
        - shell: |
            #!/bin/bash

            set -ex

            sudo apt-get update
            sudo apt-get install -y --no-install-recommends codespell

            case "${platform_type}" in
              generic)
                git clone --branch ${git_branch} --depth 1 git://git.linaro.org/lng/odp.git odp
                ;;
              dpdk)
                git clone --branch ${git_branch} --depth 1 git://git.linaro.org/lng/odp-dpdk.git odp
                ;;
            esac

            cd odp

            find platform/linux-${platform_type} -name *.h -o -name *.c -exec ./scripts/odp_check {} \;
            current_check=$(git log --oneline -1)
            set +x
            echo "************************************************"
            echo "Generated from hash: ${current_check}"
            echo "************************************************"
            set -x
    publishers:
        - email:
            recipients: 'lng-ci@lists.linaro.org'