8 image: registry.freedesktop.org/libnice/libnice/centos7/autotools-build
13 - export BUILD_ID="libnice-$CI_JOB_NAME_$CI_COMMIT_SHA-$CI_JOB_ID"
14 - export PREFIX="$(pwd)/prefix-$BUILD_ID"
15 - export MAKEFLAGS="-j4"
17 - ./autogen.sh --prefix="$PREFIX" --enable-compile-warnings=error --enable-gtk-doc --enable-introspection
25 image: registry.freedesktop.org/libnice/libnice/centos7/autotools-build
38 - random/test-suite.log
39 - tests/test-suite.log
40 - stun/tests/test-suite.log
41 - docs/reference/libnice/test-suite.log
43 test autotools valgrind:
44 extends: test autotools
51 image: registry.freedesktop.org/libnice/libnice/centos7/autotools-build
65 image: registry.freedesktop.org/libnice/libnice/centos7/meson-build
67 PREFIX: "${CI_PROJECT_DIR}/libnice-prefix"
71 - mkdir -p "${CI_PROJECT_DIR}"
73 ## && true to make gitlab-ci happy
74 - source scl_source enable rh-python36 && true
75 - meson --werror --warnlevel 2 -Dgtk_doc=enabled --prefix=$PREFIX build/
76 - ninja-build -C build/
82 image: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/windows:v10'
91 --prefix=${CI_PROJECT_DIR}/libnice-prefix
92 # Make sure any failure in PowerShell scripts is fatal
93 ErrorActionPreference: 'Stop'
94 WarningPreference: 'Stop'
96 - pip3 install -U meson
98 # Make sure powershell exists on errors
99 # https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_preference_variables?view=powershell-6
100 - $ErrorActionPreference = "Stop"
102 # For some reason docker build hangs if this is included in the image, needs more troubleshooting
103 - $env:PATH += ';C:\msys64\usr\bin;C:\msys64\mingw64\bin;C:\msys64\mingw32\bin'
104 - C:\msys64\usr\bin\bash -c "pacman-key --init && pacman-key --populate msys2 && pacman-key --refresh-keys || true"
105 - C:\msys64\usr\bin\bash -c "pacman -Syuu --noconfirm"
106 - C:\msys64\usr\bin\bash -c "pacman -Sy --noconfirm --needed mingw-w64-x86_64-toolchain ninja"
108 # For some reason, options are separated by newline instead of space, so we
109 # have to replace them first.
110 - $env:MESON_ARGS = $env:MESON_ARGS.replace("`n"," ")
112 - $env:PATH += ";C:\msys64\usr\bin;C:\msys64\mingw64/bin;C:\msys64\mingw32/bin"
114 # For some reason, options are separated by newline instead of space, so we
115 # have to replace them first.
116 - $env:CI_PROJECT_DIR = $env:CI_PROJECT_DIR.replace('\','/')
117 - $env:MESON_ARGS = $env:MESON_ARGS.replace('\','/')
119 # Build and run the tests.
120 # This is part of the same job due to a bug in the gitlab-runner
121 # that prevents us from exporting artifacts with docker-windows
122 # executors. It has since been fixed in gitlab 12.1, but
123 # we are blocked from upgrading currently.
125 # Gitlab Runner issue: https://gitlab.com/gitlab-org/gitlab-runner/issues/4291
126 # Blocked upgrade issue: https://gitlab.freedesktop.org/gstreamer/gst-ci/issues/6#note_192780
127 - C:\msys64\usr\bin\bash -c "meson build $env:MESON_ARGS &&
129 meson test -C build --print-errorlogs --suite libnice"
142 # For some reason, options are separated by newline instead of space, so we
143 # have to replace them first.
144 - $env:MESON_ARGS = $env:MESON_ARGS.replace("`n"," ")
146 # Build and run the tests.
147 # This is part of the same job due to a bug in the gitlab-runner
148 # that prevents us from exporting artifacts with docker-windows
149 # executors. It has since been fixed in gitlab 12.1, but
150 # we are blocked from upgrading currently.
152 # Gitlab Runner issue: https://gitlab.com/gitlab-org/gitlab-runner/issues/4291
153 # Blocked upgrade issue: https://gitlab.freedesktop.org/gstreamer/gst-ci/issues/6#note_192780
154 - New-Item -Path subprojects -Name openssl.wrap -Value "[wrap-git]`r`ndirectory=openssl`r`nurl=https://gitlab.freedesktop.org/libnice/openssl-binaries-for-ci.git`r`nrevision=1.1.1c`r`n"
155 - cmd.exe /C "C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=$env:ARCH &&
156 meson subprojects download &&
157 meson wrap promote subprojects\glib-$env:GLIB_VERSION\subprojects\libffi.wrap &&
158 meson wrap promote subprojects\glib-$env:GLIB_VERSION\subprojects\zlib.wrap &&
159 meson wrap promote subprojects\glib-$env:GLIB_VERSION\subprojects\proxy-libintl.wrap &&
160 meson subprojects download"
161 - cmd.exe /C "C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=$env:ARCH &&
162 meson build $env:MESON_ARGS &&
164 meson test -C build --print-errorlogs --suite libnice"
178 image: registry.freedesktop.org/libnice/libnice/centos7/meson-build
185 - source scl_source enable rh-python36 && true
186 - meson test -C build/ --setup debug
197 - source scl_source enable rh-python36 && true
198 - meson configure build -Dgtk_doc=disabled
199 - meson test -C build/ --setup valgrind --print-errorlogs
202 doc-and-install meson:
204 image: registry.freedesktop.org/libnice/libnice/centos7/meson-build
210 PREFIX: "${CI_PROJECT_DIR}/libnice-prefix"
212 - source scl_source enable rh-python36 && true
213 - ninja-build -C build/ libnice-doc
214 - ninja-build -C build/ install
218 - build/docs/reference/libnice/html/
222 image: registry.freedesktop.org/libnice/libnice/centos7/meson-build
224 COVERITY_PROJECT: libnice
225 PREFIX: "${CI_PROJECT_DIR}/libnice-prefix"
231 - mkdir -p "${CI_PROJECT_DIR}"
233 - curl -v https://scan.coverity.com/download/linux64 -o coverity_tool.tgz --form token="${COVERITY_TOKEN}" --form project="${COVERITY_PROJECT}" && tar xf coverity_tool.tgz && rm coverity_tool.tgz
234 - mv cov-analysis-linux64-* cov-analysis-linux64
235 - source scl_source enable rh-python36 && true
236 - meson --werror --warnlevel 2 -Dgtk_doc=disabled -Dinstrospection=disabled --prefix=$PREFIX cov-build/
237 - export PATH="$PATH:${CI_PROJECT_DIR}/cov-analysis-linux64/bin"
239 - cov-build --dir cov-int ninja-build -C cov-build
240 - tar czvf libnice.tgz cov-int
241 - curl --form token=$COVERITY_TOKEN --form email=olivier.crete@ocrete.ca --form file=@libnice.tgz --form version="${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA}" --form description="CI weekly run" https://scan.coverity.com/builds?project=libnice
247 - doc-and-install meson
254 # Needs gitlab 12.8, we're on 12.7 now
255 # trigger: libnice/libnice-
258 - mv build/docs/reference/libnice/html/ public/libnice/