Nightly Builds » History » Version 18
laforge, 02/23/2018 03:48 PM
1 | 8 | laforge | {{>toc}} |
---|---|---|---|
2 | |||
3 | 16 | laforge | h1. _Nightly_ Builds |
4 | 1 | laforge | |
5 | 17 | laforge | sysmocom has setup nightly Debian/Ubuntu source package builds for the current master version of the Osmocom GSM related software. |
6 | |||
7 | *NOTE: USE NIGHTLY BUILDS ONLY FOR DEVELOPMENT/TESTING*. The [[Latest_Builds]] are a more stable alternative. |
||
8 | |||
9 | Starting from March 18, 2016, there are daily builds for |
||
10 | 1 | laforge | |
11 | 11 | neels | * Debian 8 (i586, amd64) |
12 | 18 | laforge | * Debian 9 (i586, amd64, armv7l, aarch64) |
13 | 11 | neels | * xUbuntu 16.04 (i586, amd64) |
14 | 1 | laforge | * xUbuntu 16.10 (i586, amd64) |
15 | * xUbuntu 17.04 (i586, amd64) |
||
16 | 16 | laforge | * xUbuntu 17.10 (amd64) |
17 | 1 | laforge | |
18 | 16 | laforge | The Osmocom jenkins will build source packages once a day and upload them to the Open(SUSE) Build Service (OBS). |
19 | 14 | neels | |
20 | 1 | laforge | The OBS page is at https://build.opensuse.org/project/show/network:osmocom:nightly |
21 | |||
22 | 16 | laforge | A nice status overview on the builds is available at https://build.opensuse.org/project/monitor/network:osmocom:nightly |
23 | 1 | laforge | |
24 | 16 | laforge | h2. How to use the _osmocom:nightly_ builds |
25 | 1 | laforge | |
26 | The download repositories are at: |
||
27 | |||
28 | * http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_8.0/ |
||
29 | * http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_9.0/ |
||
30 | * http://download.opensuse.org/repositories/network:/osmocom:/nightly/xUbuntu_16.04/ |
||
31 | * http://download.opensuse.org/repositories/network:/osmocom:/nightly/xUbuntu_16.10/ |
||
32 | * http://download.opensuse.org/repositories/network:/osmocom:/nightly/xUbuntu_17.04/ |
||
33 | 16 | laforge | * http://download.opensuse.org/repositories/network:/osmocom:/nightly/xUbuntu_17.10/ |
34 | 1 | laforge | |
35 | Adding the repository to your Debian 8 system: |
||
36 | <pre> |
||
37 | 10 | msuraev | sudo su |
38 | wget http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_8.0/Release.key |
||
39 | sha256sum Release.key |
||
40 | => 487d3c309facae16e83b3863bc042033fd02c41eb7183ced196d83225abb5729 |
||
41 | apt-key add Release.key |
||
42 | 1 | laforge | echo "deb http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_8.0/ ./" > /etc/apt/sources.list.d/osmocom-nightly.list |
43 | 11 | neels | apt-get update |
44 | 1 | laforge | exit |
45 | 11 | neels | </pre> |
46 | 12 | laforge | |
47 | 16 | laforge | h2. How are those builds created? |
48 | 11 | neels | |
49 | 16 | laforge | See https://jenkins.osmocom.org/jenkins/job/Osmocom_nightly_packages/ for corresponding build job. |
50 | 1 | laforge | |
51 | 16 | laforge | The script at http://git.osmocom.org/osmo-ci/tree/scripts/osmocom-nightly-packages.sh is used to |
52 | * obtain a current clone of the respective git repository |
||
53 | * check out the current master in that repository |
||
54 | * build debian source packages |
||
55 | * upload them to the OBS *network:osmocom:nightlyt* sub-project. |
||
56 | |||
57 | It's possible to reproduce the nightly builds locally using |
||
58 | <pre> |
||
59 | osc co |
||
60 | osc build |
||
61 | </pre> |
||
62 | |||
63 | To test local changes with one can create local packages the same way jenkins job above does: |
||
64 | <pre> |
||
65 | gbp buildpackage -S -uc -us --git-ignore-new --git-export-dir=/tmp |
||
66 | </pre> |
||
67 | and than repeat build steps outlined above for local build. |
||
68 | |||
69 | h2. E-Mail Notifications of build failures |
||
70 | |||
71 | Build failure notifications are sent to the "gerrit-log mailing list":https://lists.osmocom.org/mailman/listinfo/gerrit-log |