summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2018-08-27 07:27:06 +0000
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2018-08-27 07:27:06 +0000
commitc6ba89322f741760747088b8b66516b686ae0ad0 (patch)
tree4ad1e0ddf01cbb5c9efcb58ece559e69a53453ad
parent4b6f3d0d1bfd3b856869bb6e037e5025ac598537 (diff)
parent5a5b6699e88d021dcf318543c0d31096588be94f (diff)
downloadbuildstream-c6ba89322f741760747088b8b66516b686ae0ad0.tar.gz
Merge branch 'tristan/restore-post-merge-CI' into 'master'
Tristan/restore post merge ci See merge request BuildStream/buildstream!737
-rw-r--r--.gitlab-ci.yml41
-rw-r--r--README.rst5
2 files changed, 10 insertions, 36 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 669f87dbf..16f7d04a9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,16 +10,6 @@ stages:
- test
- post
-# Avoid running all the tests post merge on
-# master or on any release branch.
-#
-.tests-condition-template: &tests-condition
- only:
- - branches
- except:
- - master
- - /bst-1\..*/
-
#####################################################
# Prepare stage #
#####################################################
@@ -96,26 +86,20 @@ source_dist:
tests-debian-9:
image: buildstream/testsuite-debian:9-master-114-4cab18e3
<<: *linux-tests
- <<: *tests-condition
tests-fedora-27:
image: buildstream/testsuite-fedora:27-master-114-4cab18e3
<<: *linux-tests
- <<: *tests-condition
tests-fedora-28:
image: buildstream/testsuite-fedora:28-master-114-4cab18e3
<<: *linux-tests
- <<: *tests-condition
tests-ubuntu-18.04:
image: buildstream/testsuite-ubuntu:18.04-master-114-4cab18e3
<<: *linux-tests
- <<: *tests-condition
tests-unix:
- <<: *tests-condition
-
# Use fedora here, to a) run a test on fedora and b) ensure that we
# can get rid of ostree - this is not possible with debian-8
image: buildstream/testsuite-fedora:27-master-114-4cab18e3
@@ -154,15 +138,6 @@ tests-unix:
# Note: We still do not enforce a consistent installation of python3-sphinx,
# as it will significantly grow the backing image.
docs:
-
- # Here we build the docs for every pre-merge CI, but avoid
- # the job on post-merge to stable branches, because we only
- # ever publish them from master
- only:
- - branches
- except:
- - /bst-1\..*/
-
stage: test
script:
- export BST_SOURCE_CACHE="$(pwd)/cache/integration-cache/sources"
@@ -178,17 +153,11 @@ docs:
- public/
-#####################################################
-# Post stage #
-#####################################################
-
# Check code quality with gitlab's built-in feature.
#
code_quality:
- <<: *tests-condition
-
image: docker:stable
- stage: post
+ stage: test
variables:
DOCKER_DRIVER: overlay2
allow_failure: true
@@ -204,9 +173,11 @@ code_quality:
artifacts:
paths: [gl-code-quality-report.json]
-analysis:
- <<: *tests-condition
+#####################################################
+# Post stage #
+#####################################################
+analysis:
stage: post
script:
- |
@@ -235,8 +206,6 @@ analysis:
# Collate coverage reports
#
coverage:
- <<: *tests-condition
-
stage: post
coverage: '/TOTAL +\d+ +\d+ +(\d+\.\d+)%/'
script:
diff --git a/README.rst b/README.rst
index dc1ed5d3d..f9a750052 100644
--- a/README.rst
+++ b/README.rst
@@ -1,5 +1,10 @@
About
-----
+.. image:: https://gitlab.com/BuildStream/buildstream/badges/master/pipeline.svg
+ :target: https://gitlab.com/BuildStream/buildstream/commits/master
+
+.. image:: https://gitlab.com/BuildStream/buildstream/badges/master/coverage.svg?job=coverage
+ :target: https://gitlab.com/BuildStream/buildstream/commits/master
What is BuildStream?