aboutsummaryrefslogtreecommitdiff
path: root/kselftest.yaml
blob: 1df4c486f079790071ad1eb16c2965c731044a3b (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
- job:
    name: kselftest
    project-type: matrix
    defaults: global
    properties:
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
                - job-workspace
            linaro:
                - job-read
                - job-extended-read
                - job-build
                - job-cancel
        - build-discarder:
            days-to-keep: 90
            num-to-keep: 90
    parameters:
        - string:
            name: KSELFTEST_URL
            default: 'https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git'
        - string:
            name: KSELFTEST_BRANCH
            default: 'master'
    disabled: false
    node: master
    display-name: 'Generate kselftest tarball (arm, arm64 and x86_64)'
    axes:
        - axis:
            type: slave
            name: label
            values:
                - docker-xenial-amd64
                - docker-xenial-arm64
                - docker-xenial-armhf
    execution-strategy:
        sequential: false
    wrappers:
        - timestamps
    builders:
        - shell:
            !include-raw: kselftest/builders.sh
        - build-name-setter:
            name: 'version.txt'
            file: true
        - linaro-publish-token
        - shell: |
            #!/bin/bash

            deb_host_arch=$(dpkg-architecture -qDEB_HOST_ARCH)
            case "${deb_host_arch}" in
              amd64)
                export ARCH=x86_64
                ;;
              arm64)
                export ARCH=arm64
                ;;
              armhf)
                export ARCH=arm
                ;;
            esac

            # Publish
            test -d ${HOME}/bin || mkdir ${HOME}/bin
            wget -q https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp.py -O ${HOME}/bin/linaro-cp.py
            time python ${HOME}/bin/linaro-cp.py \
              --server ${PUBLISH_SERVER} \
              --link-latest \
              tools/testing/selftests/out/ \
              components/kernel/kselftest/${ARCH}/${BUILD_NUMBER}