summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2018-06-19 13:59:31 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2018-06-21 14:59:42 -0400
commit090d3dba7abdb1a997b0126b59846dba69a4b975 (patch)
tree6f65884359cb07efde6fc5f160db0a13b725fe6f
parentda0f00675fcbc04307bb2d1e970c56ed1b5d1d16 (diff)
downloadlibnice-add-ci.tar.gz
Add GitLab CI configurationadd-ci
-rw-r--r--.gitlab-ci.yml42
1 files changed, 42 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..a79f103
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,42 @@
+image: registry.freedesktop.org/libnice/libnice/build-tools:centos-7
+stages:
+ - build
+
+build-and-test:
+ stage: build
+ except:
+ - schedules
+ before_script:
+ - yum install -y net-tools
+ script:
+ - ifconfig
+ - export BUILD_ID="libnice-$CI_JOB_NAME_$CI_COMMIT_SHA-$CI_JOB_ID"
+ - export PREFIX="$(pwd)/prefix-$BUILD_ID"
+ - export MAKEFLAGS="-j4"
+ - mkdir "$PREFIX"
+ - ./autogen.sh --prefix="$PREFIX" --enable-compile-warnings=error --enable-gtk-doc --enable-introspection
+ - make
+ #- make check
+ - make install
+ #- make distcheck
+ artifacts:
+ when: on_failure
+ paths:
+ - nice/test-suite.log
+ - random/test-suite.log
+ - tests/test-suite.log
+ - stun/tests/test-suite.log
+ - config.log
+
+submit-to-coverity:
+ image: registry.freedesktop.org/libnice/libnice/build-tools/coverity:2017.07
+ stage: build
+ only:
+ - schedules
+ script:
+ - ./autogen.sh --prefix="$PREFIX" --disable-gtk-doc --disable-introspection
+ - make clean
+ - export PATH="$PATH:/root/cov-analysis-linux64-2017.07/bin"
+ - cov-build --dir cov-int make -j4
+ - 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