blob: 09147db4e19829c27c00af3804182c7bce1f400e (
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
|
- job:
name: odp-release-tool-check
project-type: matrix
defaults: global
description: |
* Run the tools listed in the axis on ODP's LTS implementation
* and publish the result.
properties:
- authorization:
anonymous:
- job-read
- job-extended-read
linaro:
- job-read
- job-extended-read
- job-build
- job-cancel
- build-discarder:
num-to-keep: 30
days-to-keep: 30
disabled: false
node: master
child-workspace: .
display-name: 'ODP release tool check'
axes:
- axis:
type: user-defined
name: build_type
values:
- cpp_test
- m32_on_64
- distcheck
- clang
- run_valid_from_install
- clang_and_m32_on_64
- axis:
type: user-defined
name: GIT_BRANCH
values:
- monarch_lts
- axis:
type: slave
name: label
values:
- docker-jessie-amd64
wrappers:
- timestamps
- matrix-tie-parent:
node: master
- timeout:
timeout: 60
builders:
- linaro-publish-token
- shell: |
#!/bin/bash
set -ex
rm -rf check-odp
git clone --depth 1 git://git.linaro.org/lng/check-odp.git
./check-odp/pre-install.sh
sudo apt-get install -y python-requests
case "${build_type}" in
cpp_test)
export CPP_TEST=1
;;
m32_on_64)
export M32_ON_64=1
;;
distcheck)
export DISTCHECK=1
;;
clang)
export CLANG=1
;;
run_valid_from_install)
export RUN_VALID_FROM_INSTALL=1
;;
clang_and_m32_on_64)
export CLANG=1
export M32_ON_64=1
;;
esac
set +e
bash -x ${WORKSPACE}/check-odp/build.sh
retcode=$?
set -e
# Move log files
if [ -d check-odp/build/odp/testdir/ ]; then
mkdir -p out/log && find check-odp/build/odp/testdir/ -type f -name '*.log' -exec cp {} out/log \;
fi
# Publish to snapshots
test -d ${HOME}/bin || mkdir ${HOME}/bin
wget https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp.py -O ${HOME}/bin/linaro-cp.py
if [ -d out ]; then
PUB_DEST=components/lng/odp/odp-release-tool-check/${GIT_BRANCH}/${label}/${BUILD_NUMBER}
time python ${HOME}/bin/linaro-cp.py --api_version 3 --link-latest out ${PUB_DEST}
echo "***************************"
echo "Logs published on http://snapshots.linaro.org/${PUB_DEST}"
echo "***************************"
fi
if [ ${retcode} -ne 0 ]; then
exit 1
else
exit 0
fi
publishers:
- warnings:
console-log-parsers:
- 'GNU Make + GNU C Compiler (gcc)'
- email:
recipients: 'lng-ci@lists.linaro.org'
|