Verified Commit e89fad14 authored by Jordan Petridіs's avatar Jordan Petridіs 🌱
Browse files

gitlab/ci_template.yml: rework the CI stages

Idea is that in order to not consume many resources for broken
builds, we will have a basic stage where just one simple set of
build and test jobs is run. If that passes we will continue with
the rest of the Pipeline suite.
parent 2bb429bb
stages: stages:
- "test"
- "build runtime" - "build runtime"
- "build base" - "build base"
- "manifest" - "preparation"
# Test just one basic build, if succeds procced to test the rest
- "build" - "build"
- "test"
# Run multiple builds and tests, multi-distro, multi-arch
- "full builds"
- "full tests"
test manifest: test manifest:
variables: variables:
GIT_STRATEGY: fetch GIT_STRATEGY: fetch
image: "fedora" image: "fedora"
stage: "test" stage: "preparation"
before_script: before_script:
- dnf install -y python3-pytest python3-pytest-cov python3-requests - dnf install -y python3-pytest python3-pytest-cov python3-requests
script: script:
...@@ -122,6 +126,7 @@ include: "gitlab/ci_template.yml" ...@@ -122,6 +126,7 @@ include: "gitlab/ci_template.yml"
# Test the build job against the latest build image tag and the local manifest # Test the build job against the latest build image tag and the local manifest
build fedora x86_64 local: build fedora x86_64 local:
extends: '.build' extends: '.build'
stage: 'build'
image: "${CI_REGISTRY_IMAGE}/amd64/fedora-build:latest" image: "${CI_REGISTRY_IMAGE}/amd64/fedora-build:latest"
build ubuntu x86_64 local: build ubuntu x86_64 local:
......
stages: stages:
- "manifest" - 'preparation'
- "build" # Test just one basic build, if it succeeds proceed to test the rest
- 'build'
- 'test'
# Run multiple builds and tests, multi-distro, multi-arch
- 'full builds'
- 'full tests'
variables: variables:
GIT_STRATEGY: none GIT_STRATEGY: none
...@@ -17,7 +22,7 @@ variables: ...@@ -17,7 +22,7 @@ variables:
manifest: manifest:
image: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/alpine-manifest-build:10ffa6f1af6fed20a8857d2c7426d81cf162e3d1' image: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/alpine-manifest-build:10ffa6f1af6fed20a8857d2c7426d81cf162e3d1'
stage: 'manifest' stage: 'preparation'
script: script:
- cd /gst-ci - cd /gst-ci
- gitlab/build_manifest.py --self-update - gitlab/build_manifest.py --self-update
...@@ -29,7 +34,7 @@ manifest: ...@@ -29,7 +34,7 @@ manifest:
- "manifest.xml" - "manifest.xml"
.build: .build:
stage: "build" stage: 'full builds'
dependencies: dependencies:
- "manifest" - "manifest"
variables: variables:
...@@ -66,6 +71,7 @@ manifest: ...@@ -66,6 +71,7 @@ manifest:
build fedora x86_64: build fedora x86_64:
extends: '.build' extends: '.build'
stage: 'build'
image: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/fedora-build:2414895a53408ed8a0410a52560f8090b3f74696' image: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/fedora-build:2414895a53408ed8a0410a52560f8090b3f74696'
build android arm64 api28: build android arm64 api28:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment