blob: fd2432e9b9f6a2ff88b49eca8a4ca6f728a5e141 [file] [log] [blame]
Oliver Smith85c2eff2018-09-13 15:39:44 +02001---
2- project:
3 name: Osmocom-depcheck
4 jobs:
5 - Osmocom-depcheck
6
7- job-template:
8 name: 'Osmocom-depcheck'
9 project-type: freestyle
10 defaults: global
11 description: |
12 Verifies that Osmocom programs really build with the dependency
13 versions they claim to support in configure.ac.
14 (Generated by job-builder)
15 node: osmocom-master-debian9
16 parameters:
17 - string:
18 name: PROJECTS
19 description: |
20 Which Osmocom projects and revisions to build, leave
21 empty to default to all projects (!),
22 default revision is "master".
23 Examples: "osmo-hlr", "osmo-hlr:0.2.1 osmo-bts:0.8.1"
24 default: 'osmo-hlr:0.2.1'
25 - string:
26 name: GIT_URL_PREFIX
27 description: |
28 Where to clone the sources from
29 default: 'git://git.osmocom.org/'
30 - bool:
31 name: BUILD
32 description: |
33 Attempt to build the project with the minimum dependency
34 versions found in the configure.ac files. If this is unchecked,
35 this job will only clone the git repositories and parse the
36 configure.ac files.
37 default: true
38 - bool:
39 name: PRINT_OLD_DEPENDS
40 description: |
41 Report dependencies on old releases (printed after the other
42 parsing output, before the build starts)
43 default: false
44 - string:
45 name: BRANCH
46 description: |
47 Branch where the osmo-depcheck.py script gets pulled from.
48 Only modify this if you are hacking on osmo-depcheck.py.
49 default: '*/master'
50 builders:
51 - shell: |
52 # Build the arguments
53 args="$PROJECTS"
54 args="$args -j 5"
Oliver Smitha99a4ef2018-09-21 10:29:51 +020055 args="$args -w $PWD/DEPCHECK_WORKDIR"
Oliver Smith85c2eff2018-09-13 15:39:44 +020056 args="$args -u $GIT_URL_PREFIX"
57 [ "$BUILD" = "true" ] && args="$args -b"
58 [ "$PRINT_OLD_DEPENDS" = "true" ] && args="$args -o"
59
60 # Run osmo-depcheck
Oliver Smitha99a4ef2018-09-21 10:29:51 +020061 mkdir DEPCHECK_WORKDIR
Oliver Smith85c2eff2018-09-13 15:39:44 +020062 export PYTHONUNBUFFERED=1
63 scripts/osmo-depcheck/osmo-depcheck.py $args
64 scm:
65 - git:
66 branches:
67 - '$BRANCH'
68 url: git://git.osmocom.org/osmo-ci
69 git-config-name: 'Jenkins Builder'
70 git-config-email: 'jenkins@osmocom.org'
71
72# vim: expandtab tabstop=2 shiftwidth=2