-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecm_simple.xml
More file actions
170 lines (152 loc) · 6.1 KB
/
Copy pathecm_simple.xml
File metadata and controls
170 lines (152 loc) · 6.1 KB
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
<?xml version='1.0' encoding='UTF-8'?>
<project>
<actions/>
<description></description>
<logRotator class="hudson.tasks.LogRotator">
<daysToKeep>7</daysToKeep>
<numToKeep>-1</numToKeep>
<artifactDaysToKeep>-1</artifactDaysToKeep>
<artifactNumToKeep>-1</artifactNumToKeep>
</logRotator>
<keepDependencies>false</keepDependencies>
<properties/>
<scm class="hudson.plugins.git.GitSCM" plugin="git@2.2.12">
<configVersion>2</configVersion>
<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
<name>git_debian</name>
<url>https://anonscm.debian.org/git/pkg-kde/frameworks/extra-cmake-modules.git</url>
</hudson.plugins.git.UserRemoteConfig>
<hudson.plugins.git.UserRemoteConfig>
<name>git_kde</name>
<url>git://anongit.kde.org/extra-cmake-modules.git</url>
</hudson.plugins.git.UserRemoteConfig>
</userRemoteConfigs>
<branches>
<hudson.plugins.git.BranchSpec>
<name>refs/remotes/git_debian/master</name>
</hudson.plugins.git.BranchSpec>
</branches>
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
<submoduleCfg class="list"/>
<extensions>
<hudson.plugins.git.extensions.impl.RelativeTargetDirectory>
<relativeTargetDir>repo</relativeTargetDir>
</hudson.plugins.git.extensions.impl.RelativeTargetDirectory>
<hudson.plugins.git.extensions.impl.CleanCheckout/>
<hudson.plugins.git.extensions.impl.LocalBranch>
<localBranch>master</localBranch>
</hudson.plugins.git.extensions.impl.LocalBranch>
</extensions>
</scm>
<canRoam>true</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<triggers>
<hudson.triggers.SCMTrigger>
<spec>H H * * *</spec>
<ignorePostCommitHooks>false</ignorePostCommitHooks>
</hudson.triggers.SCMTrigger>
</triggers>
<concurrentBuild>false</concurrentBuild>
<builders>
<hudson.tasks.Shell>
<command>echo "Clean build directory"
export_dir=build
rm -rf ${export_dir}
</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>echo "Prepare source package"
cd repo
export_dir=../build
gbp buildpackage --git-verbose --git-upstream-branch=git_kde/master --git-upstream-tag="v%(version)s" --git-export-dir="${export_dir}" --git-overlay -S -us -uc
</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>echo "Build binaries (arch & all)"
cd repo
export_dir=../build
source_name=$(dpkg-parsechangelog -S source)
version=$(dpkg-parsechangelog -S version)
epochless_version=${version##*:}
distribution=$(dpkg-parsechangelog -S distribution | tr '[:upper:]' '[:lower:]')
arch=$(dpkg-architecture -qDEB_HOST_ARCH)
cd "${export_dir}"
dsc_file="${source_name}_${epochless_version}.dsc"
chroot="${distribution}-${arch}-sbuild"
sbuild --dist="$distribution" --arch="$arch" --chroot="$chroot" --arch-all --verbose ${dsc_file}
</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>#!/bin/bash
echo "Run Lintian"
cd repo
version=$(dpkg-parsechangelog -S version)
epochless_version=${version##*:}
source_name=$(dpkg-parsechangelog -S source)
export_dir="../build"
source_changes="${export_dir}/${source_name}_${epochless_version}_source.changes"
arch=$(dpkg-architecture -qDEB_HOST_ARCH)
arch_changes="${export_dir}/${source_name}_${epochless_version}_${arch}.changes"
(lintian -I --pedantic --show-overrides "${source_changes}"; lintian -I --pedantic --show-overrides "${arch_changes}") 2>&1 | \
tee "${export_dir}/lintian.log" | lintian2junit.py -o "${export_dir}/lintian.xml";
</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>echo "Combine changes file"
cd repo
version=$(dpkg-parsechangelog -S version)
epochless_version=${version##*:}
source_name=$(dpkg-parsechangelog -S source)
export_dir=../build
source_changes="${source_name}_${epochless_version}_source.changes"
arch=$(dpkg-architecture -qDEB_HOST_ARCH)
arch_changes="${source_name}_${epochless_version}_${arch}.changes"
cd "${export_dir}"
mergechanges -f "${source_changes}" "${arch_changes}"
# Fix permissions
find -maxdepth 1 -type f -exec chmod 0644 '{}' '+'
</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>echo "Run autopkgtests"
cd repo
version=$(dpkg-parsechangelog -S version)
epochless_version=${version##*:}
source_name=$(dpkg-parsechangelog -S source)
export_dir=../build
multi_changes="${export_dir}/${source_name}_${epochless_version}_multi.changes"
distribution=$(dpkg-parsechangelog -S distribution | tr '[:upper:]' '[:lower:]')
arch=$(dpkg-architecture -qDEB_HOST_ARCH)
adt-run -U "${multi_changes}" --output-dir="${export_dir}/adt.artifacts" --- lxc -s "adt-${distribution}-${arch}"
adt2junit.py -o "${export_dir}/adt.xml" "${export_dir}/adt.artifacts/log"
</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>echo "Local upload"
cd repo
version=$(dpkg-parsechangelog -S version)
epochless_version=${version##*:}
source_name=$(dpkg-parsechangelog -S source)
export_dir=../build
cd "${export_dir}"
dput -u local "${source_name}_${epochless_version}_multi.changes"
</command>
</hudson.tasks.Shell>
</builders>
<publishers>
<hudson.tasks.ArtifactArchiver>
<artifacts>build/**</artifacts>
<latestOnly>false</latestOnly>
<allowEmptyArchive>false</allowEmptyArchive>
</hudson.tasks.ArtifactArchiver>
<hudson.tasks.junit.JUnitResultArchiver>
<testResults>build/*.xml</testResults>
<keepLongStdio>false</keepLongStdio>
<testDataPublishers/>
</hudson.tasks.junit.JUnitResultArchiver>
</publishers>
<buildWrappers/>
</project>