Skip to content
Snippets Groups Projects
Commit bea01531 authored by Tristan Van Berkom's avatar Tristan Van Berkom
Browse files

.gitlab-ci.yml: Avoid running tests in post-merge

parent f1e3f10f
No related branches found
No related tags found
1 merge request!709.gitlab-ci.yml: Avoid running tests in post-merge
......@@ -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 #
#####################################################
......@@ -81,20 +91,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
......@@ -133,6 +149,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"
......@@ -157,6 +182,8 @@ docs:
# as an output of radon, with some conversion
#
codequality:
<<: *tests-condition
image: docker:stable
stage: post
variables:
......@@ -175,6 +202,8 @@ codequality:
paths: [codeclimate.json]
analysis:
<<: *tests-condition
stage: post
script:
- |
......@@ -203,6 +232,8 @@ analysis:
# Collate coverage reports
#
coverage:
<<: *tests-condition
stage: post
coverage: '/TOTAL +\d+ +\d+ +(\d+\.\d+)%/'
script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment