File: .gitlab-ci.yml

package info (click to toggle)
kbibtex 0.9.90-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 23,072 kB
  • sloc: cpp: 40,314; python: 450; xml: 372; sh: 150; makefile: 12
file content (51 lines) | stat: -rw-r--r-- 3,087 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
image: kdeneon/plasma:dev-unstable

variables:
  BUILD_DIR: "/tmp/build-kbibtex"
  INSTALL_DIR: "/tmp/usr"
  KDEDIRS: "/usr:$INSTALL_DIR"
  LD_LIBRARY_PATH: "$INSTALL_DIR/lib"
  QT_ASSUME_STDERR_HAS_CONSOLE: 1
  QT_DEPRECATED_WARNINGS: 1
  QT_DISABLE_DEPRECATED: 0x050C00
  QT_MESSAGE_PATTERN: "[%{type}] %{appname} (%{file}:%{line}) - %{message}"
  QT_PLUGIN_PATH: "$INSTALL_DIR/lib/plugins/"
  XDG_CACHE_HOME: "$INSTALL_DIR/home/cache"
  XDG_CONFIG_HOME: "$INSTALL_DIR/home/config"
  XDG_DATA_DIRS: "/usr/share:/usr/local/share:$INSTALL_DIR/share"
  XDG_DATA_HOME: "$INSTALL_DIR/home/data"
  TESTSET_DIR: "/tmp/kbibtex-testset"
  COVERITYSCAN_USR_DIR: "/tmp/coverity-scan-usr"
  COVERITYSCAN_OUTPUT_DIR: "/tmp/coverity-scan-output"
  COVERITYSCAN_COVINT_TARBALL: "/tmp/cov-scan.tar.gz"
  COVERITYSCAN_VERSION: "2019.03"

before_script:
  - sudo apt-get update -qq
  - sudo apt-get install -y -qq cmake ninja-build build-essential extra-cmake-modules libqt5xmlpatterns5-dev libqt5networkauth5-dev libqt5test5 libqt5webenginewidgets5 libqt5webkit5 libkf5i18n-dev libkf5xmlgui-dev libkf5kio-dev libkf5iconthemes-dev libkf5itemviews-dev libkf5completion-dev libkf5parts-dev libkf5coreaddons-dev libkf5service-dev libkf5wallet-dev libkf5crash-dev libkf5doctools-dev libkf5texteditor-dev libkf5syntaxhighlighting-dev libpoppler-qt5-dev gettext libicu-dev libqca-qt5-2-dev git

automated-tests:
  script:
    - mkdir -p $(dirname $TESTSET_DIR) && cd $(dirname $TESTSET_DIR) && git clone --depth 1 "https://anongit.kde.org/kbibtex-testset.git" $(basename $TESTSET_DIR)
    - mkdir -p $BUILD_DIR/$CI_JOB_NAME && cd $BUILD_DIR/$CI_JOB_NAME
    - cmake -GNinja -DCMAKE_BUILD_TYPE=debug -DCMAKE_INSTALL_PREFIX:PATH=$INSTALL_DIR -DBUILD_TESTING:BOOL=ON -DTESTSET_DIRECTORY:PATH=$TESTSET_DIR $CI_PROJECT_DIR
    - ninja
    - ninja install
    - cd $BUILD_DIR/$CI_JOB_NAME/bin/
    - ./kbibtexiotest -platform offscreen
    - ./kbibtexdatatest -platform offscreen
    - ./kbibtexfilestest -platform offscreen
    - ./kbibtexnetworkingtest -platform offscreen

coverity-scan:
  rules:
    - if: $COVERITYSCAN_TOKEN != null
  script:
    - mkdir -p $COVERITYSCAN_USR_DIR $COVERITYSCAN_OUTPUT_DIR/cov-int
    - wget --no-check-certificate --post-data "project=KBibTeX&token="$COVERITYSCAN_TOKEN https://scan.coverity.com/download/cxx/linux64 -O - | tar -zxv -C $COVERITYSCAN_USR_DIR
    - mkdir -p $BUILD_DIR/$CI_JOB_NAME && cd $BUILD_DIR/$CI_JOB_NAME
    - cmake -GNinja -DCMAKE_BUILD_TYPE=debug -DCMAKE_INSTALL_PREFIX:PATH=$INSTALL_DIR -DBUILD_TESTING:BOOL=OFF $CI_PROJECT_DIR
    - ninja clean
    - $COVERITYSCAN_USR_DIR/cov-analysis-linux64-$COVERITYSCAN_VERSION/bin/cov-build --dir $COVERITYSCAN_OUTPUT_DIR/cov-int ninja
    - tar -cavf $COVERITYSCAN_COVINT_TARBALL -C $COVERITYSCAN_OUTPUT_DIR cov-int
    - curl --insecure --verbose --progress-bar --form "token="$COVERITYSCAN_TOKEN --form "email=fischer@unix-ag.uni-kl.de"  --form "file=@"$COVERITYSCAN_COVINT_TARBALL --form "version=GitLab" --form "description=Automatically built on GitLab" "https://scan.coverity.com/builds?project=KBibTeX"