diff options
author | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2018-08-23 11:04:32 +0000 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2018-08-23 11:04:32 +0000 |
commit | d02e36b885fe7216c8b5f514fd9d8311cc9eb4e6 (patch) | |
tree | 31e09955a96b86520228af207d313bf64a29ef70 | |
parent | 7c84d0891e378a78f372918a52abc067960434e8 (diff) | |
parent | e1648312d82e524e87fd727c1d46fcf52bf0ba3d (diff) | |
download | buildstream-d02e36b885fe7216c8b5f514fd9d8311cc9eb4e6.tar.gz |
Merge branch 'tristan/reduce-gitlab-ci-1.2' into 'bst-1.2'
.gitlab-ci.yml: Avoid running tests in post-merge (1.2)
See merge request BuildStream/buildstream!710
-rw-r--r-- | .gitlab-ci.yml | 31 | ||||
-rw-r--r-- | README.rst | 5 |
2 files changed, 31 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 89921d16c..545002f03 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,6 +10,16 @@ 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 # ##################################################### @@ -91,20 +101,26 @@ 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 @@ -143,6 +159,15 @@ 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" @@ -167,6 +192,8 @@ docs: # as an output of radon, with some conversion # codequality: + <<: *tests-condition + image: docker:stable stage: post variables: @@ -185,6 +212,8 @@ codequality: paths: [codeclimate.json] analysis: + <<: *tests-condition + stage: post script: - | @@ -213,6 +242,8 @@ 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 6f64f47a6..0af603fdc 100644 --- a/README.rst +++ b/README.rst @@ -1,10 +1,5 @@ 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? |