Commit e1054901 authored by Olivier Crête's avatar Olivier Crête

gitlab ci: Use new CentOS 7 dockerfile based containers everywhere

parent 92a2d6b7
image: registry.freedesktop.org/libnice/libnice/build-tools:centos-7
stages: stages:
- build - build
- test - test
build autotools: build autotools:
stage: build stage: build
image: registry.freedesktop.org/ocrete/libnice/centos7/autotools-build
except: except:
- schedules - schedules
before_script:
- yum install -y net-tools
script: script:
- ifconfig - ifconfig
- export BUILD_ID="libnice-$CI_JOB_NAME_$CI_COMMIT_SHA-$CI_JOB_ID" - export BUILD_ID="libnice-$CI_JOB_NAME_$CI_COMMIT_SHA-$CI_JOB_ID"
...@@ -23,12 +21,11 @@ build autotools: ...@@ -23,12 +21,11 @@ build autotools:
test autotools: test autotools:
stage: test stage: test
image: registry.freedesktop.org/ocrete/libnice/centos7/autotools-build
except: except:
- schedules - schedules
dependencies: dependencies:
- build autotools - build autotools
before_script:
- yum install -y net-tools
script: script:
- ifconfig - ifconfig
- make check - make check
...@@ -44,12 +41,11 @@ test autotools: ...@@ -44,12 +41,11 @@ test autotools:
distcheck autotools: distcheck autotools:
stage: test stage: test
image: registry.freedesktop.org/ocrete/libnice/centos7/autotools-build
except: except:
- schedules - schedules
dependencies: dependencies:
- build autotools - build autotools
before_script:
- yum install -y net-tools
script: script:
- ifconfig - ifconfig
- make distcheck - make distcheck
...@@ -58,57 +54,35 @@ distcheck autotools: ...@@ -58,57 +54,35 @@ distcheck autotools:
- libnice-*.tar.gz - libnice-*.tar.gz
build meson: build meson:
image: 'fedora'
stage: build stage: build
image: registry.freedesktop.org/ocrete/libnice/centos7/meson-build
variables: variables:
PREFIX: "${CI_PROJECT_DIR}/libnice-prefix" PREFIX: "${CI_PROJECT_DIR}/libnice-prefix"
DEPENDENCIES: >
meson
gnutls-devel
gupnp-igd-devel
glib2-devel
gobject-introspection-devel
gstreamer1-devel
redhat-rpm-config
gtk-doc
except: except:
- schedules - schedules
before_script: before_script:
- dnf install -y ${DEPENDENCIES}
- mkdir -p "${CI_PROJECT_DIR}" - mkdir -p "${CI_PROJECT_DIR}"
script: script:
## && true to make gitlab-ci happy
- source scl_source enable rh-python36 && true
- meson --werror --warnlevel 2 -Dgtk_doc=enabled --prefix=$PREFIX build/ - meson --werror --warnlevel 2 -Dgtk_doc=enabled --prefix=$PREFIX build/
- ninja -C build/ - ninja-build -C build/
artifacts: artifacts:
paths: paths:
- build/ - build/
test meson: test meson:
image: 'fedora'
stage: test stage: test
image: registry.freedesktop.org/ocrete/libnice/centos7/meson-build
allow_failure: true allow_failure: true
dependencies: dependencies:
- build meson - build meson
except: except:
- schedules - schedules
variables:
PREFIX: "${CI_PROJECT_DIR}/libnice-prefix"
DEPENDENCIES: >
meson
net-tools
gnutls-devel
gupnp-igd-devel
glib2-devel
gobject-introspection-devel
gstreamer1-devel
redhat-rpm-config
gtk-doc
before_script:
- dnf install -y ${DEPENDENCIES}
- mkdir -p "${CI_PROJECT_DIR}"
script: script:
- ifconfig - ifconfig
- meson test -C build --print-errorlogs - source scl_source enable rh-python36 && true
- meson test -C build/ --print-errorlogs
artifacts: artifacts:
when: on_failure when: on_failure
paths: paths:
...@@ -116,43 +90,38 @@ test meson: ...@@ -116,43 +90,38 @@ test meson:
doc-and-install meson: doc-and-install meson:
stage: test stage: test
image: fedora image: registry.freedesktop.org/ocrete/libnice/centos7/meson-build
dependencies: dependencies:
- build meson - build meson
except: except:
- schedules - schedules
variables: variables:
PREFIX: "${CI_PROJECT_DIR}/libnice-prefix" PREFIX: "${CI_PROJECT_DIR}/libnice-prefix"
DEPENDENCIES: >
meson
net-tools
gnutls-devel
gupnp-igd-devel
glib2-devel
gobject-introspection-devel
gstreamer1-devel
redhat-rpm-config
gtk-doc
before_script:
- dnf install -y ${DEPENDENCIES}
- mkdir -p "${CI_PROJECT_DIR}"
script: script:
- ninja -C build libnice-doc - source scl_source enable rh-python36 && true
- ninja -C build/ install - ninja-build -C build/ libnice-doc
- ninja-build -C build/ install
- ls -lR ${PREFIX} - ls -lR ${PREFIX}
artifacts: artifacts:
paths: paths:
- build/docs/reference/libnice/html/ - build/docs/reference/libnice/html/
submit-to-coverity: submit-to-coverity:
image: registry.freedesktop.org/libnice/libnice/build-tools/coverity:2017.07 stage: test
stage: build image: registry.freedesktop.org/ocrete/libnice/centos7/autotools-build
variables:
COVERITY_PROJECT: libnice
only: only:
- schedules - schedules
dependencies: []
script: script:
- 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
- mv cov-analysis-linux64-* cov-analysis-linux64
- ./autogen.sh --prefix="$PREFIX" --disable-gtk-doc --disable-introspection - ./autogen.sh --prefix="$PREFIX" --disable-gtk-doc --disable-introspection
- make clean - make clean
- export PATH="$PATH:/root/cov-analysis-linux64-2017.07/bin" - export PATH="$PATH:${CI_PROJECT_DIR}/cov-analysis-linux64/bin"
- echo $PATH
- cov-build --dir cov-int make -j4 - cov-build --dir cov-int make -j4
- tar czvf libnice.tgz cov-int - tar czvf libnice.tgz cov-int
- 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 - 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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment