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



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

    ci: Add .gitlab-ci.yml
    
    Deploy coverage reports for master branch

 .gitlab-ci.yml | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 000000000..25ec8c456
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,35 @@
+image: fedora:rawhide
+
+stages:
+  - build
+  - deploy
+
+fedora-x86_64:
+  stage: build
+  except:
+    - tags
+  before_script:
+    - dnf install -y autoconf automake bison dbus-x11 flex gcc glib2-devel gobject-introspection-devel 
graphviz-devel lcov libxslt make vala
+  script:
+    - ./autogen.sh --enable-coverage
+    - make -j8
+    - make -j8 check
+    - make -j8 coverage-report
+  artifacts:
+    name: "vala-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
+    when: always
+    paths:
+      - "coverage"
+
+pages:
+  stage: deploy
+#  only:
+#    - master
+  script:
+    - mv coverage/ public/
+  cache:
+    key: ${CI_COMMIT_REF_SLUG}
+  artifacts:
+    paths:
+      - public
+    expire_in: 1 week


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