[vala/wip/ci: 2/5] ci: Add .gitlab-ci.yml



commit d2b225d5ea972ae10b1fbf5e4658231b391d29dc
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue May 22 20:24:49 2018 +0200

    ci: Add .gitlab-ci.yml
    
    Perform build tests for fedora-gcc-x86_64 and ubuntu-clang-x86_64
    and deploy coverage reports for master branch.

 .gitlab-ci.yml | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 000000000..a35984717
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,52 @@
+stages:
+  - build
+  - deploy
+
+fedora-gcc-x86_64:
+  stage: build
+  image: fedora:rawhide
+  except:
+    - tags
+  before_script:
+    - dnf install -y autoconf autoconf-archive automake bison dbus-x11 flex gcc git glib2-devel 
graphviz-devel lcov libxslt make vala
+  script:
+    - git fetch --tags
+    - ./autogen.sh --enable-coverage
+    - make -j4
+    - make -j4 coverage-report
+  coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/'
+  artifacts:
+    name: "vala-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
+    paths:
+      - "coverage"
+    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
+
+pages:
+  stage: deploy
+  only:
+    - master
+  script:
+    - mv coverage/ public/
+  artifacts:
+    name: "vala-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
+    paths:
+      - public
+    expire_in: 2 days


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]