diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 952e8174c1..c915ab0b52 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,15 +14,15 @@ variables: CCACHE_DIR: "${CI_PROJECT_DIR}/ccache" -.build: &build +.build: stage: build after_script: - for builddir in build/packaging/rpm/BUILD/wireshark-*/build build/packaging/rpm/BUILD/wireshark-* build obj-*; do [ ! -d "$builddir/run" ] || break; done - if [[ "$CI_JOB_NAME" == "build:rpm-opensuse-"* ]]; then export LD_LIBRARY_PATH=$builddir/run; fi - if [ -f $builddir/run/tshark ]; then $builddir/run/tshark --version; fi -.build-ubuntu: &build-ubuntu - <<: *build +.build-ubuntu: + extends: .build image: wireshark/wireshark-ubuntu-dev retry: 1 # https://gould.cx/ted/blog/2017/06/10/ccache-for-Gitlab-CI/ @@ -59,16 +59,16 @@ variables: - if [ -f run/dumpcap ]; then su user -c "run/dumpcap -D" ; fi - su user -c pytest-3 -.build-rpm: &build-rpm - <<: *build +.build-rpm: + extends: .build artifacts: paths: - build/packaging/rpm/RPMS expire_in: 3 days # Rely on fedora:latest and debian-stable jobs for testing a recent GCC version. -clang-11: &clang-11 - <<: *build-ubuntu +clang-11: + extends: .build-ubuntu variables: CC: clang-11 CXX: clang++-11 @@ -93,7 +93,7 @@ build:ubuntu-dist: # https://hub.docker.com/r/wireshark/wireshark-centos-7-dev # https://gitlab.com/wireshark/wireshark-containers/-/tree/master/dev/centos-7 build:rpm-centos-7: - <<: *build-rpm + extends: .build-rpm image: wireshark/wireshark-centos-7-dev script: - mkdir build @@ -112,7 +112,7 @@ test:rpm-centos-7: GIT_STRATEGY: none build:rpm-centos-8: - <<: *build-rpm + extends: .build-rpm image: wireshark/wireshark-centos-8-dev script: - mkdir build @@ -132,7 +132,7 @@ test:rpm-centos-8: build:rpm-opensuse-15.1: image: wireshark/wireshark-opensuse-15.1-dev - <<: *build-rpm + extends: .build-rpm script: - mkdir build - cd build @@ -151,7 +151,7 @@ test:rpm-opensuse-15.1: build:rpm-opensuse-15.2: image: wireshark/wireshark-opensuse-15.2-dev - <<: *build-rpm + extends: .build-rpm script: - mkdir build - cd build @@ -169,7 +169,7 @@ test:rpm-opensuse-15.2: - build:rpm-opensuse-15.2 build:rpm-fedora: - <<: *build-rpm + extends: .build-rpm image: wireshark/wireshark-fedora-dev script: - mkdir build @@ -189,7 +189,7 @@ test:rpm-fedora: # Job to generate packages for Debian stable build:debian-stable: - <<: *build + extends: .build image: wireshark/wireshark-debian-stable-dev script: # Shared GitLab runners limit the log size to 4M, so reduce verbosity. See @@ -262,7 +262,7 @@ doxygen_all: # https://docs.gitlab.com/ee/user/gitlab_com/index.html#linux-shared-runners merge-req:commit-checks: - <<: *build-ubuntu + extends: .build-ubuntu tags: - docker rules: @@ -276,7 +276,7 @@ merge-req:commit-checks: - tools/validate-commit.py merge-req:ubuntu-dpkg: - <<: *build-ubuntu + extends: .build-ubuntu tags: - docker rules: @@ -294,7 +294,7 @@ merge-req:ubuntu-dpkg: - ccache --max-size $( du --summarize --block-size=1M --total "$CI_PROJECT_DIR"/obj-* | awk '/total$/ {printf ("%dM", $1 * 1.5)}' ) merge-req:ubuntu-gcc-ctest: - <<: *build-ubuntu + extends: .build-ubuntu tags: - docker rules: