Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
buildstream
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
BuildStream
buildstream
Commits
a5aa18a4
Commit
a5aa18a4
authored
6 years ago
by
Tristan Van Berkom
Browse files
Options
Downloads
Patches
Plain Diff
.gitlab-ci.yml: Avoid running tests in post-merge
parent
7c84d089
No related branches found
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+31
-0
31 additions, 0 deletions
.gitlab-ci.yml
with
31 additions
and
0 deletions
.gitlab-ci.yml
+
31
−
0
View file @
a5aa18a4
...
@@ -10,6 +10,16 @@ stages:
...
@@ -10,6 +10,16 @@ stages:
-
test
-
test
-
post
-
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 #
# Prepare stage #
#####################################################
#####################################################
...
@@ -91,20 +101,26 @@ source_dist:
...
@@ -91,20 +101,26 @@ source_dist:
tests-debian-9
:
tests-debian-9
:
image
:
buildstream/testsuite-debian:9-master-114-4cab18e3
image
:
buildstream/testsuite-debian:9-master-114-4cab18e3
<<
:
*linux-tests
<<
:
*linux-tests
<<
:
*tests-condition
tests-fedora-27
:
tests-fedora-27
:
image
:
buildstream/testsuite-fedora:27-master-114-4cab18e3
image
:
buildstream/testsuite-fedora:27-master-114-4cab18e3
<<
:
*linux-tests
<<
:
*linux-tests
<<
:
*tests-condition
tests-fedora-28
:
tests-fedora-28
:
image
:
buildstream/testsuite-fedora:28-master-114-4cab18e3
image
:
buildstream/testsuite-fedora:28-master-114-4cab18e3
<<
:
*linux-tests
<<
:
*linux-tests
<<
:
*tests-condition
tests-ubuntu-18.04
:
tests-ubuntu-18.04
:
image
:
buildstream/testsuite-ubuntu:18.04-master-114-4cab18e3
image
:
buildstream/testsuite-ubuntu:18.04-master-114-4cab18e3
<<
:
*linux-tests
<<
:
*linux-tests
<<
:
*tests-condition
tests-unix
:
tests-unix
:
<<
:
*tests-condition
# Use fedora here, to a) run a test on fedora and b) ensure that we
# 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
# can get rid of ostree - this is not possible with debian-8
image
:
buildstream/testsuite-fedora:27-master-114-4cab18e3
image
:
buildstream/testsuite-fedora:27-master-114-4cab18e3
...
@@ -143,6 +159,15 @@ tests-unix:
...
@@ -143,6 +159,15 @@ tests-unix:
# Note: We still do not enforce a consistent installation of python3-sphinx,
# Note: We still do not enforce a consistent installation of python3-sphinx,
# as it will significantly grow the backing image.
# as it will significantly grow the backing image.
docs
:
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
stage
:
test
script
:
script
:
-
export BST_SOURCE_CACHE="$(pwd)/cache/integration-cache/sources"
-
export BST_SOURCE_CACHE="$(pwd)/cache/integration-cache/sources"
...
@@ -167,6 +192,8 @@ docs:
...
@@ -167,6 +192,8 @@ docs:
# as an output of radon, with some conversion
# as an output of radon, with some conversion
#
#
codequality
:
codequality
:
<<
:
*tests-condition
image
:
docker:stable
image
:
docker:stable
stage
:
post
stage
:
post
variables
:
variables
:
...
@@ -185,6 +212,8 @@ codequality:
...
@@ -185,6 +212,8 @@ codequality:
paths
:
[
codeclimate.json
]
paths
:
[
codeclimate.json
]
analysis
:
analysis
:
<<
:
*tests-condition
stage
:
post
stage
:
post
script
:
script
:
-
|
-
|
...
@@ -213,6 +242,8 @@ analysis:
...
@@ -213,6 +242,8 @@ analysis:
# Collate coverage reports
# Collate coverage reports
#
#
coverage
:
coverage
:
<<
:
*tests-condition
stage
:
post
stage
:
post
coverage
:
'
/TOTAL
+\d+
+\d+
+(\d+\.\d+)%/'
coverage
:
'
/TOTAL
+\d+
+\d+
+(\d+\.\d+)%/'
script
:
script
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment