.gitlab-ci.yml 3.91 KB
Newer Older
1
image: crondaemon/wireshark
Dario Lombardo's avatar
Dario Lombardo committed
2
before_script:
3
  - rm -rf /etc/apt/sources.list.d/*
4
  - echo "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial main" >  /etc/apt/sources.list.d/clang.list
5
  - echo "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-5.0 main" > /etc/apt/sources.list.d/clang5.list
6
  - echo "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main" > /etc/apt/sources.list.d/clang6.list
7 8 9 10
  - apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 15CF4D18AF4F7421
  - echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" > /etc/apt/sources.list.d/gcc.list
  - apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1E9377A2BA9EF27F
  - apt-get update -qq
11 12
  - mkdir build
  - cd build
Dario Lombardo's avatar
Dario Lombardo committed
13
gcc-4:
Dario Lombardo's avatar
Dario Lombardo committed
14
  retry: 1
Dario Lombardo's avatar
Dario Lombardo committed
15
  script:
16
    - ../tools/debian-setup.sh --install-optional ninja-build gcc-4.9 g++-4.9 -y
17
    - cmake -GNinja -DCMAKE_C_COMPILER=gcc-4.9 -DCMAKE_CXX_COMPILER=g++-4.9 ..
Dario Lombardo's avatar
Dario Lombardo committed
18 19
    - ninja
gcc-5:
Dario Lombardo's avatar
Dario Lombardo committed
20
  retry: 1
Dario Lombardo's avatar
Dario Lombardo committed
21
  script:
22
    - ../tools/debian-setup.sh --install-optional ninja-build gcc-5 g++-5 -y
23
    - cmake -GNinja -DCMAKE_C_COMPILER=gcc-5 -DCMAKE_CXX_COMPILER=g++-5 ..
Dario Lombardo's avatar
Dario Lombardo committed
24 25
    - ninja
gcc-6:
Dario Lombardo's avatar
Dario Lombardo committed
26
  retry: 1
Dario Lombardo's avatar
Dario Lombardo committed
27
  script:
28
    - ../tools/debian-setup.sh --install-optional ninja-build  gcc-6 g++-6 -y
29
    - cmake -GNinja -DCMAKE_C_COMPILER=gcc-6 -DCMAKE_CXX_COMPILER=g++-6 ..
Dario Lombardo's avatar
Dario Lombardo committed
30
    - ninja
Dario Lombardo's avatar
Dario Lombardo committed
31
gcc-7:
Dario Lombardo's avatar
Dario Lombardo committed
32
  retry: 1
Dario Lombardo's avatar
Dario Lombardo committed
33
  script:
34
    - ../tools/debian-setup.sh --install-optional ninja-build  gcc-7 g++-7 -y
35
    - cmake -GNinja -DCMAKE_C_COMPILER=gcc-7 -DCMAKE_CXX_COMPILER=g++-7 ..
Dario Lombardo's avatar
Dario Lombardo committed
36 37
    - ninja
gcc-7-nopcap:
Dario Lombardo's avatar
Dario Lombardo committed
38
  retry: 1
Dario Lombardo's avatar
Dario Lombardo committed
39
  script:
40
    - ../tools/debian-setup.sh --install-optional ninja-build  gcc-7 g++-7 -y
41
    - cmake -GNinja -DENABLE_PCAP=OFF -DCMAKE_C_COMPILER=gcc-7 -DCMAKE_CXX_COMPILER=g++-7 ..
Dario Lombardo's avatar
Dario Lombardo committed
42
    - ninja
43
clang-3.5:
Dario Lombardo's avatar
Dario Lombardo committed
44
  retry: 1
45
  script:
46
    - ../tools/debian-setup.sh --install-optional ninja-build  clang-3.5 -y
47 48 49
    - cmake -GNinja -DCMAKE_C_COMPILER=clang-3.5 -DCMAKE_CXX_COMPILER=clang++-3.5 ..
    - ninja
clang-3.6:
Dario Lombardo's avatar
Dario Lombardo committed
50
  retry: 1
51
  script:
52
    - ../tools/debian-setup.sh --install-optional ninja-build clang-3.6 -y
53 54 55
    - cmake -GNinja -DCMAKE_C_COMPILER=clang-3.6 -DCMAKE_CXX_COMPILER=clang++-3.6 ..
    - ninja
clang-3.7:
Dario Lombardo's avatar
Dario Lombardo committed
56
  retry: 1
57
  script:
58
    - ../tools/debian-setup.sh --install-optional ninja-build  clang-3.7 -y
59 60 61
    - cmake -GNinja -DCMAKE_C_COMPILER=clang-3.7 -DCMAKE_CXX_COMPILER=clang++-3.7 ..
    - ninja
clang-3.8:
Dario Lombardo's avatar
Dario Lombardo committed
62
  retry: 1
63
  script:
64
    - ../tools/debian-setup.sh --install-optional ninja-build  clang-3.8 -y
65 66 67
    - cmake -GNinja -DCMAKE_C_COMPILER=clang-3.8 -DCMAKE_CXX_COMPILER=clang++-3.8 ..
    - ninja
clang-3.9:
Dario Lombardo's avatar
Dario Lombardo committed
68
  retry: 1
69
  script:
70
    - ../tools/debian-setup.sh --install-optional ninja-build  clang-3.9 -y
71 72 73
    - cmake -GNinja -DCMAKE_C_COMPILER=clang-3.9 -DCMAKE_CXX_COMPILER=clang++-3.9 ..
    - ninja
clang-4.0:
Dario Lombardo's avatar
Dario Lombardo committed
74
  retry: 1
75
  script:
76
    - ../tools/debian-setup.sh --install-optional ninja-build  clang-4.0 -y
77 78
    - cmake -GNinja -DCMAKE_C_COMPILER=clang-4.0 -DCMAKE_CXX_COMPILER=clang++-4.0 -DCMAKE_C_FLAGS=-Wframe-larger-than=20000 ..
    - ninja
79
clang-5.0:
Dario Lombardo's avatar
Dario Lombardo committed
80
  retry: 1
81
  script:
82
    - ../tools/debian-setup.sh --install-optional ninja-build  clang-5.0 -y
83 84 85
    - cmake -GNinja -DCMAKE_C_COMPILER=clang-5.0 -DCMAKE_CXX_COMPILER=clang++-5.0 -DCMAKE_C_FLAGS=-Wframe-larger-than=20000 ..
    - ninja
clang-6.0:
Dario Lombardo's avatar
Dario Lombardo committed
86
  retry: 1
87
  script:
88
    - ../tools/debian-setup.sh --install-optional ninja-build  clang-6.0 -y
89 90
    - cmake -GNinja -DCMAKE_C_COMPILER=clang-6.0 -DCMAKE_CXX_COMPILER=clang++-6.0 -DCMAKE_C_FLAGS=-Wframe-larger-than=20000 ..
    - ninja
91
clang-7:
92 93
  retry: 1
  script:
94 95 96 97 98 99 100 101
     - ../tools/debian-setup.sh --install-optional ninja-build clang-7 -y
     - cmake -GNinja -DCMAKE_C_COMPILER=clang-7  -DCMAKE_CXX_COMPILER=clang++-7 -DCMAKE_C_FLAGS=-Wframe-larger-than=20000 ..
     - ninja
clang-7-nopcap:
  retry: 1
  script:
    - ../tools/debian-setup.sh --install-optional ninja-build clang-7 -y
    - cmake -GNinja -DENABLE_PCAP=OFF -DCMAKE_C_COMPILER=clang-7 -DCMAKE_CXX_COMPILER=clang++-7 -DCMAKE_C_FLAGS=-Wframe-larger-than=20000 ..
102
    - ninja