From: Rico Tzschichholz Date: Tue, 22 May 2018 18:24:49 +0000 (+0200) Subject: ci: Add .gitlab-ci.yml X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c87d47b306175c1c8a72fed5cd1103314cc4b06b;p=thirdparty%2Fvala.git ci: Add .gitlab-ci.yml Perform build tests for fedora-gcc-x86_64 and ubuntu-clang-x86_64 and deploy coverage reports and API documentation for master branch. --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index aad0b0bc1..47971ac84 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -61,3 +61,59 @@ nightly@25.08@aarch64: nightly@24.08@aarch64: extends: [".publish_nightly", ".flatpak rules"] needs: ["flatpak-extension@24.08@aarch64"] + +fedora-gcc-x86_64: + stage: build + image: fedora:latest + except: + - tags + before_script: + - dnf update -y + - dnf install -y autoconf autoconf-archive automake bison dbus-x11 diffutils flex gcc git glib2-devel graphviz-devel lcov libxslt make vala + script: + - git fetch --tags + - ./autogen.sh --prefix=$HOME/vala-installed --enable-coverage + - make -j4 + - make install + - make -j4 coverage-report VERBOSE=1 + - make -C doc internal-api-docs + coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/' + artifacts: + name: "vala-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" + paths: + - "coverage" + - "doc/internal-apis" + expire_in: 2 days + +ubuntu-clang-x86_64: + stage: build + image: ubuntu:devel + except: + - tags + variables: + CC: clang + DEBIAN_FRONTEND: noninteractive + before_script: + - apt update + - apt install -y automake autoconf-archive libtool bison dbus flex clang git libglib2.0-dev libgraphviz-dev libgirepository1.0-dev lcov xsltproc make valac + script: + - git fetch --tags + - ./autogen.sh + - make -j4 + - make -j4 bootstrap + - make -j4 check VERBOSE=1 + +pages: + stage: deploy + only: + - main + script: + - mkdir public + - mv coverage public/. + - mv doc/internal-apis public/docs + - echo "

Vala

" > public/index.html + artifacts: + name: "vala-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" + paths: + - public + expire_in: 2 days