Commit Graph

281 Commits

Author SHA1 Message Date
Dario Lombardo 2c1d5b714a gitlab-ci: use ninja in opensuse builds.
Change-Id: I80df02fb3db6ab5a742726c3beaa30a203db7237
Reviewed-on: https://code.wireshark.org/review/31576
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2019-01-18 08:31:30 +00:00
Peter Wu 33a8f5e7e6 gitlab-ci: do not build the all target when invoking rpm-package
It doubles the build time for little benefit as rpm-package will
essentially build the same binaries again.

Adjust the "tshark --version" invocation, besides "build" (normal
build), also look in "build/packaging/rpm/BUILD/wireshark-*/build"
(OpenSUSE) and "build/packaging/rpm/BUILD/wireshark-*" (CentOS).

rpmbuild from OpenSUSE sets -DCMAKE_SKIP_RPATH=ON, as a workaround set
LD_LIBRARY_PATH to ensure that tshark can find its libraries.

Change-Id: I5ce8b97515516adbbba2f1e445a9dd1abf08d530
Reviewed-on: https://code.wireshark.org/review/31541
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-14 19:01:35 +00:00
Peter Wu 60e32b6eb3 RPM: remove dependency on the which utility
It is not necessary to know the full path to a program. Instead use the
'type' shell builtin (part of POSIX) to detect availability.

Change-Id: Id68b298625d389a1f7843f52f56312bf81d97b80
Reviewed-on: https://code.wireshark.org/review/31540
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-01-14 19:01:27 +00:00
Dario Lombardo 3f177068f3 gitlab-ci: add missing package to opensuse.
Ruby pkg contains gem that is required to install a working version
of asciidoctor.

Change-Id: Iabe790c17e3be3e3285868b5e0734101bad4f5a5
Reviewed-on: https://code.wireshark.org/review/31525
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2019-01-13 10:13:03 +00:00
Dario Lombardo 651a146667 tools/gitlab-ci: add missing packages for rpm builds.
Change-Id: I04e3414ff27e18db8c83581116f4099bbb696a08
Reviewed-on: https://code.wireshark.org/review/31516
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-13 07:14:28 +00:00
Dario Lombardo 3561c88012 gitlab-ci: upgrade before anything else in fedora28.
Fix a bug in linking:
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/libgnutls.so: undefined reference to `nettle_rsa_sec_decrypt@HOGWEED_4'

Change-Id: Icc85813bd72274e448667bab4a80037ec5bdd48d
Reviewed-on: https://code.wireshark.org/review/31519
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2019-01-12 23:43:55 +00:00
Dario Lombardo 81fe5b8298 gitlab-ci: don't force ninja-build installation.
It has been added to the debian-setup script, then it is
pointless to force it.

Change-Id: I5c9f047c7e5826ff06f483d5a2f0c2e808c17853
Reviewed-on: https://code.wireshark.org/review/31180
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2018-12-23 22:20:18 +00:00
Dario Lombardo 708c1ae794 gitlab-ci: rename tasks and remove extra spaces.
Change-Id: If047e5f05e56ba3b0e5425f0827882434a53c925
Reviewed-on: https://code.wireshark.org/review/29333
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-09-03 04:10:01 +00:00
Dario Lombardo 43f0ccadaf gitlab-ci: remove older clang versions.
Change-Id: Iadb8c40211e90bfd9cad7b48eaa8315d073c653b
Reviewed-on: https://code.wireshark.org/review/29332
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-09-03 04:09:44 +00:00
Dario Lombardo 67a73b4152 gitlab-ci: update apt list files.
Change-Id: I7a9dfec200d64c327e1d12bb691a310295a8c1ff
Reviewed-on: https://code.wireshark.org/review/29316
Tested-by: Dario Lombardo <lomato@gmail.com>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2018-08-30 07:16:01 +00:00
Dario Lombardo 92841d5eec gitlab-ci: add fedora build.
Change-Id: Ie5e49a4eb35dac2793ac3d8be8ba87d663ff359b
Reviewed-on: https://code.wireshark.org/review/28322
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2018-06-19 09:36:32 +00:00
Dario Lombardo 1aff175b1c gitlab-ci: add opensuse build.
Create RPM as well.

Change-Id: Id84df19c6fa27eb576d29884299f771224328dba
Reviewed-on: https://code.wireshark.org/review/28122
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-06-09 19:33:16 +00:00
Dario Lombardo edcad2c3f5 gitlab-ci: add centos build.
Create RPM as well.

Change-Id: Iaedbd0fbe2b7c00f07ea833aef261351c78b6985
Reviewed-on: https://code.wireshark.org/review/28113
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-06-09 19:33:05 +00:00
Dario Lombardo df1b07cc62 gitlab-ci: add tshark --version test after all jobs.
Change-Id: I7d82587b26dd1636c437fc07934f5ca941ab052c
Reviewed-on: https://code.wireshark.org/review/28108
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-06-09 19:31:35 +00:00
Dario Lombardo e088fcd84c gitlab-ci: make ubuntu steps a module.
This will make room for more modules to be used by new jobs.

Change-Id: I0dff41d18c8027cb4d929acf5ab808a64f0277a4
Reviewed-on: https://code.wireshark.org/review/28107
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-06-09 05:52:30 +00:00
Dario Lombardo 869180ce7d gitlab-ci: add gcc-8 and use it for nopcap build.
Change-Id: If7c17202f45ea0832596d5a87154b9ea333a5296
Reviewed-on: https://code.wireshark.org/review/27303
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2018-05-03 14:56:19 +00:00
Dario Lombardo cca89ca837 gitlab-ci: add clang 7 builds.
Compile nopcap with clang 7 instead of 6.

Change-Id: Icc3ffc895e2b97feadca719b45ef72a5d79098cd
Reviewed-on: https://code.wireshark.org/review/26207
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2018-03-01 13:04:09 +00:00
Dario Lombardo fc9ee03ada gitlab-ci: speed up the builds a little bit.
Change-Id: I29756429d106b56e5c0b9b61d92f4c6ca8629b36
Reviewed-on: https://code.wireshark.org/review/25923
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2018-02-20 13:37:07 +00:00
Dario Lombardo aef93dba8c gitlab-ci: remove not working clang repos.
Change-Id: Id1a6f07747dec45619b89daa0d8f7acb2bd425ca
Reviewed-on: https://code.wireshark.org/review/25865
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2018-02-18 09:03:38 +00:00
Dario Lombardo 8022f12151 gitlab-ci: fix clang repos.
Change-Id: If0dd9074b0c2493c1f66f26271018f5dadc91e3d
Reviewed-on: https://code.wireshark.org/review/25467
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2018-01-25 12:20:34 +00:00
Dario Lombardo e80b40adbe extcap: remove conditional compilation.
Change-Id: Ia54bba388755cf27a343fe6d69d244bf1ab897f9
Reviewed-on: https://code.wireshark.org/review/25186
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Roland Knall <rknall@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-01-08 05:50:15 +00:00
Dario Lombardo 4f146fa95f gitlab-ci: install ninja-build using debian script.
Change-Id: I5bf1f1ea36f970be4ccf1a11b3da4198f83a6e68
Reviewed-on: https://code.wireshark.org/review/25114
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2018-01-02 14:56:16 +00:00
Dario Lombardo 7cf2d86590 gitlab-ci: use custom wireshark image.
Change-Id: I1f305c818c4985009d98f6b64b8b649704d6a5f9
Reviewed-on: https://code.wireshark.org/review/24909
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2017-12-20 20:06:53 +00:00
Dario Lombardo 579708a97e gitlab-ci: build noextcap and nopcap in gcc7 and clang6 only.
Change-Id: I1893a9bde0c77ec2e1ae6edd50ea3eee1109d7ae
Reviewed-on: https://code.wireshark.org/review/24905
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2017-12-20 08:34:45 +00:00
Dario Lombardo 23c6b558ed gitlab-ci: rework the gcc jobs to speed up the builds.
Change-Id: I3e19c11677e5094e76d2d6f1f67a48426821620a
Reviewed-on: https://code.wireshark.org/review/24904
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2017-12-20 08:34:37 +00:00
Dario Lombardo 3181888797 gitlab-ci: add retry.
Due to some network failures, add a retry to all jobs.

Change-Id: Ic7737db3348b5e43a30680a7f8e7c2e3850116c3
Reviewed-on: https://code.wireshark.org/review/24903
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2017-12-20 08:34:28 +00:00
Dario Lombardo 397e2a2d74 gitlab-ci: restyle the gcc builds
The gcc builds now take the package from the official
gcc ppa and use the ubuntu 16.04 docker image. The
gcc docker image was shipped with a old Qt version
that caused some errors.

Change-Id: Ieefbda99cd0931ff3043de6caa4cccd163589759
Reviewed-on: https://code.wireshark.org/review/24736
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2017-12-11 07:50:22 +00:00
Dario Lombardo 8cbde93146 gitlab-ci: add clang 5 and 6 builds.
Change-Id: I732cee0ced4c38298660716bf8d027f6b22be885
Reviewed-on: https://code.wireshark.org/review/24494
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2017-11-21 14:41:30 +00:00
Dario Lombardo e2deb54414 gitlab-ci: add clang builds.
From clang 3.5 to 4.0, using official ubuntu docker image.

Change-Id: I60f41f2eb83990e4298ece27027413994d4f6440
Reviewed-on: https://code.wireshark.org/review/24405
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2017-11-16 06:35:58 +00:00
Dario Lombardo 7981d4bf0e gitlab-ci: add gcc 7.
Change-Id: I3b03c9fcbe67cca5c818f40875dc4828baa05012
Reviewed-on: https://code.wireshark.org/review/23118
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2017-08-18 19:04:36 +00:00
Dario Lombardo ebf4c91d83 Add .gitlab-ci.yml.
As for .travis.yml, this file triggers the CI module of GITLAB.
On the public instance of gitlab (gitlab.com) the runners are active
by default, then any mirror of wireshark on gitlab.com will result
in an automated build.

The current version of .gitlab-ci.yml builds with gcc 4,5,6 and with
default config, without extcap and without pcap.

Change-Id: I0800045e7f1b4a137dbd69a185d3b09a89398948
Reviewed-on: https://code.wireshark.org/review/18936
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2016-11-25 17:07:49 +00:00