more
[metze/wireshark/wip.git] / .gitlab-ci.yml
1 .ubuntu: &ubuntu
2   image: crondaemon/wireshark
3   retry: 1
4   before_script:
5     - rm -rf /etc/apt/sources.list.d/*
6     - echo "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial main" > /etc/apt/sources.list.d/clang.list
7     - echo "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main" > /etc/apt/sources.list.d/clang6.list
8     - echo "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-7 main" > /etc/apt/sources.list.d/clang7.list
9     - apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 15CF4D18AF4F7421
10     - echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" > /etc/apt/sources.list.d/gcc.list
11     - apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1E9377A2BA9EF27F
12     - apt-get update -qq
13     - mkdir build
14     - cd build
15 gcc-4:
16   <<: *ubuntu
17   script:
18     - ../tools/debian-setup.sh --install-optional ninja-build gcc-4.9 g++-4.9 -y
19     - cmake -GNinja -DCMAKE_C_COMPILER=gcc-4.9 -DCMAKE_CXX_COMPILER=g++-4.9 ..
20     - ninja
21 gcc-5:
22   <<: *ubuntu
23   script:
24     - ../tools/debian-setup.sh --install-optional ninja-build gcc-5 g++-5 -y
25     - cmake -GNinja -DCMAKE_C_COMPILER=gcc-5 -DCMAKE_CXX_COMPILER=g++-5 ..
26     - ninja
27 gcc-6:
28   <<: *ubuntu
29   script:
30     - ../tools/debian-setup.sh --install-optional ninja-build gcc-6 g++-6 -y
31     - cmake -GNinja -DCMAKE_C_COMPILER=gcc-6 -DCMAKE_CXX_COMPILER=g++-6 ..
32     - ninja
33 gcc-7:
34   <<: *ubuntu
35   script:
36     - ../tools/debian-setup.sh --install-optional ninja-build gcc-7 g++-7 -y
37     - cmake -GNinja -DCMAKE_C_COMPILER=gcc-7 -DCMAKE_CXX_COMPILER=g++-7 ..
38     - ninja
39 gcc-8:
40   <<: *ubuntu
41   script:
42     - ../tools/debian-setup.sh --install-optional ninja-build gcc-8 g++-8 -y
43     - cmake -GNinja -DCMAKE_C_COMPILER=gcc-8 -DCMAKE_CXX_COMPILER=g++-8 ..
44     - ninja
45 gcc-8-nopcap:
46   <<: *ubuntu
47   script:
48     - ../tools/debian-setup.sh --install-optional ninja-build gcc-8 g++-8 -y
49     - cmake -GNinja -DENABLE_PCAP=OFF -DCMAKE_C_COMPILER=gcc-8 -DCMAKE_CXX_COMPILER=g++-8 ..
50     - ninja
51 clang-5:
52   <<: *ubuntu
53   script:
54     - ../tools/debian-setup.sh --install-optional ninja-build clang-5.0 -y
55     - cmake -GNinja -DCMAKE_C_COMPILER=clang-5.0 -DCMAKE_CXX_COMPILER=clang++-5.0 -DCMAKE_C_FLAGS=-Wframe-larger-than=20000 ..
56     - ninja
57 clang-6:
58   <<: *ubuntu
59   script:
60     - ../tools/debian-setup.sh --install-optional ninja-build clang-6.0 -y
61     - cmake -GNinja -DCMAKE_C_COMPILER=clang-6.0 -DCMAKE_CXX_COMPILER=clang++-6.0 -DCMAKE_C_FLAGS=-Wframe-larger-than=20000 ..
62     - ninja
63 clang-7:
64   <<: *ubuntu
65   script:
66      - ../tools/debian-setup.sh --install-optional ninja-build clang-7 -y
67      - cmake -GNinja -DCMAKE_C_COMPILER=clang-7 -DCMAKE_CXX_COMPILER=clang++-7 -DCMAKE_C_FLAGS=-Wframe-larger-than=20000 ..
68      - ninja
69 clang-7-nopcap:
70   <<: *ubuntu
71   script:
72     - ../tools/debian-setup.sh --install-optional ninja-build clang-7 -y
73     - cmake -GNinja -DENABLE_PCAP=OFF -DCMAKE_C_COMPILER=clang-7 -DCMAKE_CXX_COMPILER=clang++-7 -DCMAKE_C_FLAGS=-Wframe-larger-than=20000 ..
74     - ninja
75 rpm-centos-7:
76   image: centos:7
77   script:
78     - yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
79     - yum install -y which
80     - tools/rpm-setup.sh --install-optional -y
81     - mkdir build
82     - cd build
83     - cmake3 -GNinja ..
84     - ninja-build
85     - ninja-build rpm-package
86 rpm-opensuse-42.3:
87   image: opensuse:42.3
88   script:
89     - zypper --non-interactive install which update-desktop-files
90     - tools/rpm-setup.sh --install-optional
91     - mkdir build
92     - cd build
93     - cmake ..
94     - make
95     - make rpm-package
96 rpm-fedora-28:
97   image: fedora:28
98   script:
99     - yum install -y which
100     - tools/rpm-setup.sh --install-optional -y
101     - mkdir build
102     - cd build
103     - cmake3 -GNinja ..
104     - ninja-build
105     - ninja-build rpm-package
106 after_script:
107   - if [ -f build/run/tshark ];then build/run/tshark --version; fi