aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2017-11-15 09:53:20 +0100
committerAnders Broman <a.broman58@gmail.com>2017-11-16 06:35:58 +0000
commite2deb54414d4b54bf44f8369ccc9a0ad8fc7c172 (patch)
tree4755b74818ccd4257b779ef79518be95ca62f7d7
parentac1d52aff5bdf74600ddc2f8f06ceccf9d2037a6 (diff)
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>
-rw-r--r--.gitlab-ci.yml62
1 files changed, 38 insertions, 24 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e06c8cf..4b4ea06 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,87 +2,101 @@ before_script:
- apt-get update -qq
- apt-get install ninja-build -y
- ./tools/debian-setup.sh --install-optional -y
+ - mkdir build
+ - cd build
gcc-4:
image: gcc:4
script:
- - mkdir build
- - cd build
- cmake -GNinja ..
- ninja
gcc-4-noextcap:
image: gcc:4
script:
- - mkdir build
- - cd build
- cmake -GNinja -DENABLE_EXTCAP=OFF ..
- ninja
gcc-4-nopcap:
image: gcc:4
script:
- - mkdir build
- - cd build
- cmake -GNinja -DENABLE_PCAP=OFF ..
- ninja
gcc-5:
image: gcc:5
script:
- - mkdir build
- - cd build
- cmake -GNinja ..
- ninja
gcc-5-noextcap:
image: gcc:5
script:
- - mkdir build
- - cd build
- cmake -GNinja -DENABLE_EXTCAP=OFF ..
- ninja
gcc-5-nopcap:
image: gcc:5
script:
- - mkdir build
- - cd build
- cmake -GNinja -DENABLE_PCAP=OFF ..
- ninja
gcc-6:
image: gcc:6
script:
- - mkdir build
- - cd build
- cmake -GNinja ..
- ninja
gcc-6-noextcap:
image: gcc:6
script:
- - mkdir build
- - cd build
- cmake -GNinja -DENABLE_EXTCAP=OFF ..
- ninja
gcc-6-nopcap:
image: gcc:6
script:
- - mkdir build
- - cd build
- cmake -GNinja -DENABLE_PCAP=OFF ..
- ninja
gcc-7:
image: gcc:7
script:
- - mkdir build
- - cd build
- cmake -GNinja ..
- ninja
gcc-7-noextcap:
image: gcc:7
script:
- - mkdir build
- - cd build
- cmake -GNinja -DENABLE_EXTCAP=OFF ..
- ninja
gcc-7-nopcap:
image: gcc:7
script:
- - mkdir build
- - cd build
- cmake -GNinja -DENABLE_PCAP=OFF ..
- ninja
+clang-3.5:
+ image: ubuntu:16.04
+ script:
+ - apt install clang-3.5 -y
+ - cmake -GNinja -DCMAKE_C_COMPILER=clang-3.5 -DCMAKE_CXX_COMPILER=clang++-3.5 ..
+ - ninja
+clang-3.6:
+ image: ubuntu:16.04
+ script:
+ - apt install clang-3.6 -y
+ - cmake -GNinja -DCMAKE_C_COMPILER=clang-3.6 -DCMAKE_CXX_COMPILER=clang++-3.6 ..
+ - ninja
+clang-3.7:
+ image: ubuntu:16.04
+ script:
+ - apt install clang-3.7 -y
+ - cmake -GNinja -DCMAKE_C_COMPILER=clang-3.7 -DCMAKE_CXX_COMPILER=clang++-3.7 ..
+ - ninja
+clang-3.8:
+ image: ubuntu:16.04
+ script:
+ - apt install clang-3.8 -y
+ - cmake -GNinja -DCMAKE_C_COMPILER=clang-3.8 -DCMAKE_CXX_COMPILER=clang++-3.8 ..
+ - ninja
+clang-3.9:
+ image: ubuntu:16.04
+ script:
+ - apt install clang-3.9 -y
+ - cmake -GNinja -DCMAKE_C_COMPILER=clang-3.9 -DCMAKE_CXX_COMPILER=clang++-3.9 ..
+ - ninja
+clang-4.0:
+ image: ubuntu:16.04
+ script:
+ - apt install clang-4.0 -y
+ - cmake -GNinja -DCMAKE_C_COMPILER=clang-4.0 -DCMAKE_CXX_COMPILER=clang++-4.0 -DCMAKE_C_FLAGS=-Wframe-larger-than=20000 ..
+ - ninja